package travesty

  1. Overview
  2. Docs
Monadically traversable containers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

travesty-v0.6.0.tbz
sha256=64b136dadb5d7628dbdf5db18d4cae813a69f670979b028e5ce36db41c714064
sha512=086dbe8603047b549a0b97d9e8c3252ba71db0bd30bcb03eed24a86ad39ea52ee8118a29003bd20aea06d52b39e930e263d9a53215bfa58ea4bab7f856928add

doc/travesty.containers/Travesty_containers/Singleton/On_monad/argument-1-M/Monad_infix/index.html

Module M.Monad_infix

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

t >>= f returns a computation that sequences the computations represented by two monad elements. The resulting computation first does t to yield a value v, and then runs the computation returned by f v.

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

t >>| f is t >>= (fun a -> return (f a)).

OCaml

Innovation. Community. Security.