package producer

  1. Overview
  2. Docs

Monadic type, with two type parameters.

type ('a, 'b) t
val return : 'a -> ('a, 'b) t

return a lifts the value a into the monadic context.

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

bind ma fn applies the monadic function fn to the monadic value ma.

OCaml

Innovation. Community. Security.