package vec

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

Provides support for OCaml 4.08's binding operator syntax.

val let+ : ('a, [> `R ]) t -> ('a -> 'b) -> ('b, [ `R | `W ]) t

Equivalent to map, but with the arguments flipped.

val and+ : ('a, [> `R ]) t -> ('b, [> `R ]) t -> ('a * 'b, [ `R | `W ]) t

Equivalent to cartesian_product.

val let* : ('a, [> `R ]) t -> ('a -> ('b, [> `R ]) t) -> ('b, [ `R | `W ]) t

Equivalent to flat_map, but with the arguments flipped.

val and* : ('a, [> `R ]) t -> ('b, [> `R ]) t -> ('a * 'b, [ `R | `W ]) t

Equivalent to cartesian_product.