Module Cf_seq.C

module C: sig .. end
The module containing the sequence and accumulate functions for the continuation monad.

val sequence : ('x, unit) Cf_cmonad.t Cf_seq.t -> ('x, unit) Cf_cmonad.t
Use sequence z to compose a monad that binds all of the monads in the sequence z in the order specified. Returns the unit value.
val accumulate : ('x, 'a) Cf_cmonad.t Cf_seq.t -> ('x, 'a list) Cf_cmonad.t
Use accumulate z to compose a monad that binds all of the monads in the sequence z in the order specified, accumulating all of the values returned into a list.