Module type Bind.WITH_MAP_AND_BIND

Minimal definition using map and bind.

type 'a t

The type held by the Bind.

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

Mapping over t from 'a to 'b.

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

bind f m passes the result of computation m to function f.