package vec

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

Module Vec.Let_syntaxSource

Provides support for OCaml 4.08's binding operator syntax.

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

Equivalent to map, but with the arguments flipped.

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

Equivalent to cartesian_product.

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

Equivalent to flat_map, but with the arguments flipped.

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

Equivalent to cartesian_product.

OCaml

Innovation. Community. Security.