package dune-action-plugin

  1. Overview
  2. Docs

Module V1.OSource

Syntax sugar for applicative subset of the interface. Syntax sugar for stage is not provided to prevent accidental use.

Sourceval (let+) : 'a t -> ('a -> 'b) -> 'b t
  let+ a = g in
  h

is equivalent to:

  map g ~f:(fun a -> h)
Sourceval (and+) : 'a t -> 'b t -> ('a * 'b) t
  let+ a1 = g1
  and+ a2 = g2 in
  h

is equivalent to:

  both g1 g2 |> map ~f:(fun (a1, a2) -> h)
OCaml

Innovation. Community. Security.