package par_incr

  1. Overview
  2. Docs

Module Par_incr.SyntaxSource

Introduces some convenient operators for map, bind, combine and par operations.

Sourceval (let+) : 'a t -> ('a -> 'b) -> 'b t

Syntactic sugar for map.

NOTE: You can't provide your own cutoff when using Syntax module. You may use Cutoff.attach to add it to the resultant incremental, but there's no way to pass it as parameter initially like with map.

Sourceval (and+) : 'a t -> 'b t -> ('a * 'b) t

Syntactic sugar for combine. Recommended to be used together with let+.

Sourceval (let*) : 'a t -> ('a -> 'b t) -> 'b t

Syntactic sugar for bind.

Sourceval (and*) : 'a t -> 'b t -> ('a * 'b) t

Syntactic sugar for combine. Recommended to be used together with let*.

Sourceval (let&) : 'a t -> ('a -> 'b) -> 'b t

Syntactic sugar for map. Behaves similarly to let+.

Sourceval (and&) : 'a t -> 'b t -> ('a * 'b) t

Syntactic sugar for par. Recommended to be used together with let&.

OCaml

Innovation. Community. Security.