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 is_empty : ( _, _, _ ) t -> bool
val length : ( _, _, _ ) t -> int
val iter : ( _, 'v, _ ) t -> f:( 'v -> unit ) -> unit
val iteri_until :
( 'k, 'v, _ ) t ->
f:( key:'k key -> data:'v -> Continue_or_stop.t ) ->
Finished_or_unfinished.t
val fold_until :
( 'k, 'v, _ ) t ->
init:'a ->
f:
( key:'k key ->
data:'v ->
'a ->
( 'a, 'final ) Container.Continue_or_stop.t ) ->
finish:( 'a -> 'final ) ->
'final
val combine_errors :
( 'k, 'cmp, ( 'k, 'v Or_error.t, 'cmp ) t -> ( 'k, 'v, 'cmp ) t Or_error.t )
options
val data : ( _, 'v, _ ) t -> 'v list
val symmetric_diff :
( 'k,
'cmp,
( 'k, 'v, 'cmp ) t ->
( 'k, 'v, 'cmp ) t ->
data_equal:( 'v -> 'v -> bool ) ->
('k key * [ `Left of 'v | `Right of 'v | `Unequal of 'v * 'v ]) Sequence.t )
options
val for_all : ( 'k, 'v, _ ) t -> f:( 'v -> bool ) -> bool
val exists : ( 'k, 'v, _ ) t -> f:( 'v -> bool ) -> bool
val count : ( 'k, 'v, _ ) t -> f:( 'v -> bool ) -> int
val subrange :
( 'k,
'cmp,
( 'k, 'v, 'cmp ) t ->
lower_bound:'k key Maybe_bound.t ->
upper_bound:'k key Maybe_bound.t ->
( 'k, 'v, 'cmp ) t )
options
val binary_search :
( 'k,
'cmp,
( 'k, 'v, 'cmp ) t ->
compare:( key:'k key -> data:'v -> 'key -> int ) ->
Binary_searchable.Which_target_by_key.t ->
'key ->
('k key * 'v) option )
options
val binary_search_segmented :
( 'k,
'cmp,
( 'k, 'v, 'cmp ) t ->
segment_of:( key:'k key -> data:'v -> [ `Left | `Right ] ) ->
Binary_searchable.Which_target_by_segment.t ->
('k key * 'v) option )
options
val binary_search_subrange :
( 'k,
'cmp,
( 'k, 'v, 'cmp ) t ->
compare:( key:'k key -> data:'v -> 'bound -> int ) ->
lower_bound:'bound Maybe_bound.t ->
upper_bound:'bound Maybe_bound.t ->
( 'k, 'v, 'cmp ) t )
options
ON THIS PAGE
No table of contents