package core

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Map_intf.Creators3_with_comparator with type ('a, 'b, 'c) t := ('a, 'b, 'c) t with type ('a, 'b, 'c) tree := ('a, 'b, 'c) Tree.t
include Base.Map.Creators3_with_comparator with type ('a, 'b, 'c) t := ('a, 'b, 'c) t with type ('a, 'b, 'c) tree := ('a, 'b, 'c) Tree.t
val empty : comparator:('a, 'cmp) Base.Comparator.t -> ('a, _, 'cmp) t
val singleton : comparator:('a, 'cmp) Base.Comparator.t -> 'a -> 'b -> ('a, 'b, 'cmp) t
val map_keys : comparator:('k2, 'cmp2) Base.Comparator.t -> ('k1, 'v, 'cmp1) t -> f:('k1 -> 'k2) -> [ `Ok of ('k2, 'v, 'cmp2) t | `Duplicate_key of 'k2 ]
val map_keys_exn : comparator:('k2, 'cmp2) Base.Comparator.t -> ('k1, 'v, 'cmp1) t -> f:('k1 -> 'k2) -> ('k2, 'v, 'cmp2) t
val of_alist : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) list -> [ `Ok of ('a, 'b, 'cmp) t | `Duplicate_key of 'a ]
val of_alist_or_error : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) list -> ('a, 'b, 'cmp) t Base.Or_error.t
val of_alist_exn : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) list -> ('a, 'b, 'cmp) t
val of_alist_multi : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) list -> ('a, 'b list, 'cmp) t
val of_alist_fold : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) list -> init:'c -> f:('c -> 'b -> 'c) -> ('a, 'c, 'cmp) t
val of_alist_reduce : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) list -> f:('b -> 'b -> 'b) -> ('a, 'b, 'cmp) t
val of_sorted_array : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) array -> ('a, 'b, 'cmp) t Base.Or_error.t
val of_sorted_array_unchecked : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) array -> ('a, 'b, 'cmp) t
val of_increasing_iterator_unchecked : comparator:('a, 'cmp) Base.Comparator.t -> len:int -> f:(int -> 'a * 'b) -> ('a, 'b, 'cmp) t
val of_increasing_sequence : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) Base.Sequence.t -> ('a, 'b, 'cmp) t Base.Or_error.t
val of_sequence : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) Base.Sequence.t -> [ `Ok of ('a, 'b, 'cmp) t | `Duplicate_key of 'a ]
val of_sequence_or_error : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) Base.Sequence.t -> ('a, 'b, 'cmp) t Base.Or_error.t
val of_sequence_exn : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) Base.Sequence.t -> ('a, 'b, 'cmp) t
val of_sequence_multi : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) Base.Sequence.t -> ('a, 'b list, 'cmp) t
val of_sequence_fold : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) Base.Sequence.t -> init:'c -> f:('c -> 'b -> 'c) -> ('a, 'c, 'cmp) t
val of_sequence_reduce : comparator:('a, 'cmp) Base.Comparator.t -> ('a * 'b) Base.Sequence.t -> f:('b -> 'b -> 'b) -> ('a, 'b, 'cmp) t
val of_iteri : comparator:('a, 'cmp) Base.Comparator.t -> iteri:(f:(key:'a -> data:'b -> unit) -> unit) -> [ `Ok of ('a, 'b, 'cmp) t | `Duplicate_key of 'a ]
val of_iteri_exn : comparator:('a, 'cmp) Base.Comparator.t -> iteri:(f:(key:'a -> data:'b -> unit) -> unit) -> ('a, 'b, 'cmp) t
val of_tree : comparator:('a, 'cmp) Base.Comparator.t -> ('a, 'b, 'cmp) Tree.t -> ('a, 'b, 'cmp) t
val of_hashtbl_exn : comparator:('a, 'cmp) Comparator.t -> ('a, 'b) Hashtbl.t -> ('a, 'b, 'cmp) t
val of_key_set : ('a, 'cmp) Base.Set.t -> f:('a -> 'b) -> ('a, 'b, 'cmp) t
val quickcheck_generator : comparator:('a, 'cmp) Comparator.t -> 'a Quickcheck.Generator.t -> 'b Quickcheck.Generator.t -> ('a, 'b, 'cmp) t Quickcheck.Generator.t
OCaml

Innovation. Community. Security.