package core
Module type Container_intf.ContainerSource
include module type of struct include Base.Container end
module Continue_or_stop = Base.Container.Continue_or_stopContinue_or_stop.t is used by the f argument to fold_until in order to indicate whether folding should continue, or stop early.
module type S0 = Base.Container.S0module type S0_phantom = Base.Container.S0_phantommodule type S0_with_creators = Base.Container.S0_with_creatorsmodule type S1 = Base.Container.S1module type S1_phantom = Base.Container.S1_phantommodule type S1_with_creators = Base.Container.S1_with_creatorsmodule type Derived = Base.Container.Derivedmodule type Generic = Base.Container.Genericmodule type Generic_with_creators = Base.Container.Generic_with_creatorsmodule type Summable = Base.Container.Summableinclude Derived
val 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 Base.Container.Summable with type t = 'sum) ->
't ->
f:('a -> 'sum) ->
'sumval fold_result :
fold:('t, 'a, 'acc) fold ->
init:'acc ->
f:('acc -> 'a -> ('acc, 'e) Base.Result.t) ->
't ->
('acc, 'e) Base.Result.tval fold_until :
fold:('t, 'a, 'acc) fold ->
init:'acc ->
f:('acc -> 'a -> ('acc, 'final) Base.Container.Continue_or_stop.t) ->
finish:('acc -> 'final) ->
't ->
'finalGeneric definitions of container operations in terms of iter and length.
val is_empty : iter:('t, 'a) iter -> 't -> boolval mem : iter:('t, 'a) iter -> 't -> 'a -> equal:('a -> 'a -> bool) -> boolval 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 optionmodule Make = Base.Container.MakeThe idiom for using Container.Make is to bind the resulting module and to explicitly import each of the functions that one wants:
module Make0 = Base.Container.Make0module Make_gen = Base.Container.Make_genmodule Make_with_creators = Base.Container.Make_with_creatorsmodule Make0_with_creators = Base.Container.Make0_with_creatorsmodule Make_gen_with_creators = Base.Container.Make_gen_with_creatorsmodule type S0_permissions = S0_permissionsmodule type S1_permissions = S1_permissionsmodule type S1_with_creators_permissions = S1_with_creators_permissions