package octez-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

The identity type constructor.

include Monad.S
include Applicative.S
include Functor.S
type 'a t
val map : ('a -> 'b) -> 'a t -> 'b t

Map over the given value.

val return : 'a -> 'a t

Inject the given value.

val map2 : ('a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t

Map a binary function over the given value.

val product : 'a t -> 'b t -> ('a * 'b) t

Combine the given values. See also map2.

val join : 'a t t -> 'a t

Monadic join operator.

val bind : 'a t -> ('a -> 'b t) -> 'b t

Monadic bind operator.

val run : 'a t -> 'a
OCaml

Innovation. Community. Security.