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
include Container.Generic_phantom
val length : ( _, _ ) t -> int
val is_empty : ( _, _ ) t -> bool
val sum :
(module Container.Summable with type t = 'sum) ->
( 'a, _ ) t ->
f:( 'a elt -> 'sum ) ->
'sum
The options
type is used to make Accessors_generic
flexible as to whether a comparator is required to be passed to certain functions.
module Named : sig ... end
val fold_until :
( 'a, _ ) t ->
init:'b ->
f:( 'b -> 'a elt -> ( 'b, 'final ) Container.Continue_or_stop.t ) ->
finish:( 'b -> 'final ) ->
'final
val binary_search :
( 'a,
'cmp,
( 'a, 'cmp ) t ->
compare:( 'a elt -> 'key -> int ) ->
Binary_searchable.Which_target_by_key.t ->
'key ->
'a elt option )
options
val binary_search_segmented :
( 'a,
'cmp,
( 'a, 'cmp ) t ->
segment_of:( 'a elt -> [ `Left | `Right ] ) ->
Binary_searchable.Which_target_by_segment.t ->
'a elt option )
options
val 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 ) Sequence.Merge_with_duplicates_element.t Sequence.t )
options
ON THIS PAGE
No table of contents