package base
Module type Set.Accessors_genericSource
include Container.Generic_phantom
val length : (_, _) t -> intval is_empty : (_, _) t -> boolval sum :
(module Container.Summable with type t = 'sum) ->
('a, _) t ->
f:('a elt -> 'sum) ->
'sumThe options type is used to make Accessors_generic flexible as to whether a comparator is required to be passed to certain functions.
module Named : sig ... endval fold_until :
('a, _) t ->
init:'b ->
f:('b -> 'a elt -> ('b, 'final) Container.Continue_or_stop.t) ->
finish:('b -> 'final) ->
'finalval binary_search :
('a,
'cmp,
('a, 'cmp) t ->
compare:('a elt -> 'key -> int) ->
Binary_searchable.Which_target_by_key.t ->
'key ->
'a elt option)
optionsval binary_search_segmented :
('a,
'cmp,
('a, 'cmp) t ->
segment_of:('a elt -> [ `Left | `Right ]) ->
Binary_searchable.Which_target_by_segment.t ->
'a elt option)
optionsval merge_to_sequence :
('a,
'cmp,
?order:[ `Increasing | `Decreasing ] ->
?greater_or_equal_to:'a elt ->
?less_or_equal_to:'a elt ->
('a, 'cmp) t ->
('a, 'cmp) t ->
('a elt, 'a elt) Sequence.Merge_with_duplicates_element.t Sequence.t)
options