package traverse

  1. Overview
  2. Docs

Parameters

module Base : S
module Err : TypeS

Signature

include Functor.S with type 'a t = ('a Base.t, Err.t) Stdcompat.result
type 'a t = ('a Base.t, Err.t) Stdcompat.result
val map : ('a -> 'b) -> 'a t -> 'b t
val pure : 'a -> 'a t
val apply : ('a -> 'b) t -> (unit -> 'a t) -> 'b t

The second argument is delayed for its evaluation to be skipped if not necessary: it allows short-circuits with forall, exists, etc.

OCaml

Innovation. Community. Security.