package producer

  1. Overview
  2. Docs
type 'a t = 'a
val return : 'a -> 'a t

return a lifts the value a into the monadic context.

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

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

OCaml

Innovation. Community. Security.