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 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 validate :
name:( 'k key -> string ) ->
'v Validate.check ->
( 'k, 'v, _ ) t Validate.check
val validatei :
name:( 'k key -> string ) ->
('k key * 'v) Validate.check ->
( 'k, 'v, _ ) t Validate.check
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 ) ->
[ `Last_strictly_less_than
| `Last_less_than_or_equal_to
| `Last_equal_to
| `First_equal_to
| `First_greater_than_or_equal_to
| `First_strictly_greater_than ] ->
'key ->
('k key * 'v) option )
options
ON THIS PAGE
No table of contents