package sugar

  1. Overview
  2. Docs

Module Option.MonadSource

Sourcetype 'a t = 'a option

A parametric type representing any OCaml value.

Sourceval return : 'a -> 'a t

Creates a constant value in this monad.

Sourceval (>>=) : 'a t -> ('a -> 'b t) -> 'b t

Waits for the conclusion of the monad in the left, and then, apply the unwrapped value to the function in the right.