Module type Set.Accessors_genericSource
include Base.Container.Generic with type ('a, 'cmp, _) t := ('a, 'cmp) t
val length : (_, _) t -> intval is_empty : (_, _) t -> boolval fold_result :
('a, _) t ->
init:'acc ->
f:('acc -> 'a elt -> ('acc, 'e) Base.Result.t) ->
('acc, 'e) Base.Result.tval sum :
(module Container.Summable with type t = 'sum) ->
('a, _) t ->
f:('a elt -> 'sum) ->
'sumThe access_options type is used to make Accessors_generic flexible as to whether a comparator is required to be passed to certain functions.
val invariants : ('a, 'cmp, ('a, 'cmp) t -> bool) access_optionsval mem : ('a, 'cmp, ('a, 'cmp) t -> 'a elt -> bool) access_optionsoverride Container's mem
val add : ('a, 'cmp, ('a, 'cmp) t -> 'a elt -> ('a, 'cmp) t) access_optionsval remove : ('a, 'cmp, ('a, 'cmp) t -> 'a elt -> ('a, 'cmp) t) access_optionsval union :
('a, 'cmp, ('a, 'cmp) t -> ('a, 'cmp) t -> ('a, 'cmp) t) access_optionsval inter :
('a, 'cmp, ('a, 'cmp) t -> ('a, 'cmp) t -> ('a, 'cmp) t) access_optionsval diff :
('a, 'cmp, ('a, 'cmp) t -> ('a, 'cmp) t -> ('a, 'cmp) t) access_optionsval symmetric_diff :
('a,
'cmp,
('a, 'cmp) t ->
('a, 'cmp) t ->
('a elt, 'a elt) Base.Either.t Base.Sequence.t)
access_optionsval compare_direct :
('a, 'cmp, ('a, 'cmp) t -> ('a, 'cmp) t -> int) access_optionsval equal : ('a, 'cmp, ('a, 'cmp) t -> ('a, 'cmp) t -> bool) access_optionsval is_subset :
('a, 'cmp, ('a, 'cmp) t -> of_:('a, 'cmp) t -> bool) access_optionsval are_disjoint :
('a, 'cmp, ('a, 'cmp) t -> ('a, 'cmp) t -> bool) access_optionsmodule Named : sig ... endval fold_until :
('a, _) t ->
init:'acc ->
f:('acc -> 'a elt -> ('acc, 'final) Container.Continue_or_stop.t) ->
finish:('acc -> 'final) ->
'finalval split_le_gt :
('a, 'cmp, ('a, 'cmp) t -> 'a elt -> ('a, 'cmp) t * ('a, 'cmp) t)
access_optionsval split_lt_ge :
('a, 'cmp, ('a, 'cmp) t -> 'a elt -> ('a, 'cmp) t * ('a, 'cmp) t)
access_optionsval remove_index :
('a, 'cmp, ('a, 'cmp) t -> int -> ('a, 'cmp) t) access_optionsval to_sequence :
('a,
'cmp,
?order:[ `Increasing | `Decreasing ] ->
?greater_or_equal_to:'a elt ->
?less_or_equal_to:'a elt ->
('a, 'cmp) t ->
'a elt Base.Sequence.t)
access_optionsval binary_search :
('a,
'cmp,
('a, 'cmp) t ->
compare:('a elt -> 'key -> int) ->
Base.Binary_searchable.Which_target_by_key.t ->
'key ->
'a elt option)
access_optionsval binary_search_segmented :
('a,
'cmp,
('a, 'cmp) t ->
segment_of:('a elt -> [ `Left | `Right ]) ->
Base.Binary_searchable.Which_target_by_segment.t ->
'a elt option)
access_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) Base.Sequence.Merge_with_duplicates_element.t
Base.Sequence.t)
access_options