Frama-C:
Plug-ins:
Libraries:

Frama-C API - Make_monadic_iterators

Make iterators to handle options of monadic elements and monadic options.

  • since Frama-C+dev

Parameters

module M : Monad.S

Signature

val fold : ('a -> 'b -> 'a M.t) -> 'a -> 'b option -> 'a M.t
val map : ('a -> 'b M.t) -> 'a option -> 'b option M.t
val iter : ('a -> unit M.t) -> 'a option -> unit M.t