package base
Module Base.ContainerSource
Continue_or_stop.t is used by the f argument to fold_until in order to indicate whether folding should continue, or stop early.
Generic definitions of container operations in terms of fold.
include Derived
Source
val fold_until :
fold:('t, 'a, 'acc) fold ->
init:'acc ->
f:('acc -> 'a -> ('acc, 'final) Continue_or_stop.t) ->
finish:('acc -> 'final) ->
't ->
'finalGeneric definitions of container operations in terms of iter and length.
The idiom for using Container.Make is to bind the resulting module and to explicitly import each of the functions that one wants:
Source
module Make0_with_creators
(T : sig ... end) :
S0_with_creators with type t := T.t and type elt := T.Elt.tSource
module Make_gen_with_creators
(T : sig ... end) :
Generic_with_creators
with type ('a, 'phantom) t := ('a, 'phantom) T.t
and type 'a elt := 'a T.elt
and type ('a, 'phantom) concat := ('a, 'phantom) T.concat