package traverse

  1. Overview
  2. Docs

Module Applicative.PairSource

Parameters

module U : S
module V : S

Signature

include Functor.S with type 'a t = 'a U.t * 'a V.t
Sourcetype 'a t = 'a U.t * 'a V.t
Sourceval map : ('a -> 'b) -> 'a t -> 'b t
Sourceval pure : 'a -> 'a t
Sourceval apply : ('a -> 'b) t -> (unit -> 'a t) -> 'b t

The evaluation of the second argument is delayed so that it can be skipped if not necessary: it allows short-circuits with forall, exists, etc.

OCaml

Innovation. Community. Security.