base
Full standard library replacement for OCaml
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package base
-
base
-
-
base.base_internalhash_types
-
base.caml
-
base.md5
-
base.shadow_stdlib
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library base
val invariants : _ t -> bool
val is_empty : _ t -> bool
val length : _ t -> int
val iter : 'a t -> f:( 'a -> unit ) -> unit
val iteri_until :
'a t ->
f:( key:key -> data:'a -> Continue_or_stop.t ) ->
Finished_or_unfinished.t
val fold_until :
'a t ->
init:'acc ->
f:
( key:key ->
data:'a ->
'acc ->
( 'acc, 'final ) Container.Continue_or_stop.t ) ->
finish:( 'acc -> 'final ) ->
'final
val combine_errors : 'a Or_error.t t -> 'a t Or_error.t
val data : 'a t -> 'a list
val symmetric_diff :
'a t ->
'a t ->
data_equal:( 'a -> 'a -> bool ) ->
(key * [ `Left of 'a | `Right of 'a | `Unequal of 'a * 'a ]) Sequence.t
val for_all : 'a t -> f:( 'a -> bool ) -> bool
val exists : 'a t -> f:( 'a -> bool ) -> bool
val count : 'a t -> f:( 'a -> bool ) -> int
val subrange :
'a t ->
lower_bound:key Maybe_bound.t ->
upper_bound:key Maybe_bound.t ->
'a t
val to_sequence :
?order:[ `Increasing_key | `Decreasing_key ] ->
?keys_greater_or_equal_to:key ->
?keys_less_or_equal_to:key ->
'a t ->
(key * 'a) Sequence.t
val binary_search :
'a t ->
compare:( key:key -> data:'a -> 'key -> int ) ->
Binary_searchable.Which_target_by_key.t ->
'key ->
(key * 'a) option
val binary_search_segmented :
'a t ->
segment_of:( key:key -> data:'a -> [ `Left | `Right ] ) ->
Binary_searchable.Which_target_by_segment.t ->
(key * 'a) option
val binary_search_subrange :
'a t ->
compare:( key:key -> data:'a -> 'bound -> int ) ->
lower_bound:'bound Maybe_bound.t ->
upper_bound:'bound Maybe_bound.t ->
'a t
ON THIS PAGE
No table of contents