package base
Module Map.PolySource
A polymorphic Map.
Source
type ('key, +'value) tree =
('key, 'value, Comparator.Poly.comparator_witness) Using_comparator.Tree.tSource
val of_sequence_fold :
('k * 'v1) Sequence.t ->
init:'v2 ->
f:('v2 -> 'v1 -> 'v2) ->
('k, 'v2) tSource
val iteri_until :
('k, 'v) t ->
f:(key:'k -> data:'v -> Continue_or_stop.t) ->
Finished_or_unfinished.tSource
val fold_until :
('k, 'v) t ->
init:'acc ->
f:(key:'k -> data:'v -> 'acc -> ('acc, 'final) Container.Continue_or_stop.t) ->
finish:('acc -> 'final) ->
'finalSource
val symmetric_diff :
('k, 'v) t ->
('k, 'v) t ->
data_equal:('v -> 'v -> bool) ->
('k * [ `Left of 'v | `Right of 'v | `Unequal of 'v * 'v ]) Sequence.tSource
val subrange :
('k, 'v) t ->
lower_bound:'k Maybe_bound.t ->
upper_bound:'k Maybe_bound.t ->
('k, 'v) tSource
val to_sequence :
?order:[ `Increasing_key | `Decreasing_key ] ->
?keys_greater_or_equal_to:'k ->
?keys_less_or_equal_to:'k ->
('k, 'v) t ->
('k * 'v) Sequence.tSource
val binary_search :
('k, 'v) t ->
compare:(key:'k -> data:'v -> 'key -> int) ->
Binary_searchable.Which_target_by_key.t ->
'key ->
('k * 'v) optionSource
val binary_search_segmented :
('k, 'v) t ->
segment_of:(key:'k -> data:'v -> [ `Left | `Right ]) ->
Binary_searchable.Which_target_by_segment.t ->
('k * 'v) optionSource
val binary_search_subrange :
('k, 'v) t ->
compare:(key:'k -> data:'v -> 'bound -> int) ->
lower_bound:'bound Maybe_bound.t ->
upper_bound:'bound Maybe_bound.t ->
('k, 'v) t