package monads

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

Monadic Binding Operators.

  • since 2.2.0
val let* : ('a, 'e) M.t -> ('a -> ('b, 'e) M.t) -> ('b, 'e) M.t

let* r = f x in b is f x >>= fun r -> b

val and* : ('a, 'e) M.t -> ('b, 'e) M.t -> ('a * 'b, 'e) M.t

monoidal product

val let+ : ('a, 'e) M.t -> ('a -> 'b) -> ('b, 'e) M.t

let+ r = f x in b is f x >>| fun r -> b

val and+ : ('a, 'e) M.t -> ('b, 'e) M.t -> ('a * 'b, 'e) M.t

monoidal product

OCaml

Innovation. Community. Security.