Module Base.Container
include module type of sig ... end
module Continue_or_stop = Base__.Container_intf.Export.Continue_or_stopContinue_or_stop.tis used by thefargument tofold_untilin order to indicate whether folding should continue, or stop early.
module type S0 = Base__.Container_intf.S0module type S0_phantom = Base__.Container_intf.S0_phantommodule type S1 = Base__.Container_intf.S1module type S1_phantom = Base__.Container_intf.S1_phantommodule type Generic = Base__.Container_intf.Genericmodule type Generic_phantom = Base__.Container_intf.Generic_phantommodule type Summable = Base__.Container_intf.Summabletype ('t, 'a, 'accum) fold= 't -> init:'accum -> f:('accum -> 'a -> 'accum) -> 'accumtype ('t, 'a) iter= 't -> f:('a -> unit) -> unittype 't length= 't -> int
val iter : fold:('t, 'a, unit) fold -> ('t, 'a) iterval count : fold:('t, 'a, int) fold -> 't -> f:('a -> bool) -> intval min_elt : fold:('t, 'a, 'a option) fold -> 't -> compare:('a -> 'a -> int) -> 'a optionval max_elt : fold:('t, 'a, 'a option) fold -> 't -> compare:('a -> 'a -> int) -> 'a optionval length : fold:('t, _, int) fold -> 't -> intval to_list : fold:('t, 'a, 'a list) fold -> 't -> 'a listval sum : fold:('t, 'a, 'sum) fold -> (module Summable with type t = 'sum) -> 't -> f:('a -> 'sum) -> 'sumval fold_result : fold:('t, 'a, 'b) fold -> init:'b -> f:('b -> 'a -> ('b, 'e) Result.t) -> 't -> ('b, 'e) Result.tval fold_until : fold:('t, 'a, 'b) fold -> init:'b -> f:('b -> 'a -> ('b, 'final) Continue_or_stop.t) -> finish:('b -> 'final) -> 't -> 'finalval is_empty : iter:('t, 'a) iter -> 't -> boolGeneric definitions of container operations in terms of
iterandlength.
val exists : iter:('t, 'a) iter -> 't -> f:('a -> bool) -> boolval for_all : iter:('t, 'a) iter -> 't -> f:('a -> bool) -> boolval find : iter:('t, 'a) iter -> 't -> f:('a -> bool) -> 'a optionval find_map : iter:('t, 'a) iter -> 't -> f:('a -> 'b option) -> 'b optionval to_array : length:'t length -> iter:('t, 'a) iter -> 't -> 'a array