package melange

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Belt.MutableMap

The top level provides generic mutable map operations.

It also has two specialized inner modules Belt.MutableMap.Int and Belt.MutableMap.String

module Int : sig ... end
module String : sig ... end
module N : sig ... end
module A : sig ... end

Belt.Array Utililites for Array functions

type ('key, 'id) id = (module Belt__.Belt_Id.Comparable with type identity = 'id and type t = 'key)
type ('key, 'id) cmp = ('key -> 'key -> int) Js.Fn.arity2
type ('k, 'v, 'id) t = {
  1. cmp : ('k, 'id) cmp;
  2. mutable data : ('k, 'v) N.t;
}
val removeMutateAux : ('a, 'b) N.node -> 'a -> cmp:('a -> 'a -> int) Js.Fn.arity2 -> ('a, 'b) N.t
val remove : ('a, 'b, 'c) t -> 'a -> unit
val removeArrayMutateAux : ('a, 'b) N.node -> 'a A.t -> int -> int -> cmp:('a -> 'a -> int) Js.Fn.arity2 -> ('a, 'b) N.node option
val removeMany : ('a, 'b, 'c) t -> 'a A.t -> unit
val updateDone : ('a, 'b) N.t -> 'a -> ('b option -> 'b option) Js.Fn.arity1 -> cmp:('a -> 'a -> int) Js.Fn.arity2 -> ('a, 'b) N.t
val updateU : ('a, 'b, 'c) t -> 'a -> ('b option -> 'b option) Js.Fn.arity1 -> unit
val update : ('a, 'b, 'c) t -> 'a -> ('b option -> 'b option) -> unit
val make : id:('key, 'identity) id -> ('key, 'a, 'identity) t
val clear : ('a, 'b, 'c) t -> unit
val isEmpty : ('a, 'b, 'c) t -> bool
val minKey : ('a, 'b, 'c) t -> 'a option
val minKeyUndefined : ('a, 'b, 'c) t -> 'a Js.undefined
val maxKey : ('a, 'b, 'c) t -> 'a option
val maxKeyUndefined : ('a, 'b, 'c) t -> 'a Js.undefined
val minimum : ('a, 'b, 'c) t -> ('a * 'b) option
val minUndefined : ('a, 'b, 'c) t -> ('a * 'b) Js.undefined
val maximum : ('a, 'b, 'c) t -> ('a * 'b) option
val maxUndefined : ('a, 'b, 'c) t -> ('a * 'b) Js.undefined
val forEachU : ('a, 'b, 'c) t -> ('a -> 'b -> unit) Js.Fn.arity2 -> unit
val forEach : ('a, 'b, 'c) t -> ('a -> 'b -> unit) -> unit
val reduceU : ('a, 'b, 'c) t -> 'd -> ('d -> 'a -> 'b -> 'd) Js.Fn.arity3 -> 'd
val reduce : ('a, 'b, 'c) t -> 'd -> ('d -> 'a -> 'b -> 'd) -> 'd
val everyU : ('a, 'b, 'c) t -> ('a -> 'b -> bool) Js.Fn.arity2 -> bool
val every : ('a, 'b, 'c) t -> ('a -> 'b -> bool) -> bool
val someU : ('a, 'b, 'c) t -> ('a -> 'b -> bool) Js.Fn.arity2 -> bool
val some : ('a, 'b, 'c) t -> ('a -> 'b -> bool) -> bool
val size : ('a, 'b, 'c) t -> int
val toList : ('a, 'b, 'c) t -> ('a * 'b) list
val toArray : ('a, 'b, 'c) t -> ('a * 'b) array
val keysToArray : ('a, 'b, 'c) t -> 'a array
val valuesToArray : ('a, 'b, 'c) t -> 'b array
val checkInvariantInternal : ('a, 'b, 'c) t -> unit
val cmpU : ('a, 'b, 'c) t -> ('a, 'd, 'e) t -> ('b -> 'd -> int) Js.Fn.arity2 -> int
val cmp : ('a, 'b, 'c) t -> ('a, 'd, 'e) t -> ('b -> 'd -> int) -> int
val eqU : ('a, 'b, 'c) t -> ('a, 'd, 'e) t -> ('b -> 'd -> bool) Js.Fn.arity2 -> bool
val eq : ('a, 'b, 'c) t -> ('a, 'd, 'e) t -> ('b -> 'd -> bool) -> bool
val mapU : ('a, 'b, 'c) t -> ('b -> 'd) Js.Fn.arity1 -> ('a, 'd, 'c) t
val map : ('a, 'b, 'c) t -> ('b -> 'd) -> ('a, 'd, 'c) t
val mapWithKeyU : ('a, 'b, 'c) t -> ('a -> 'b -> 'd) Js.Fn.arity2 -> ('a, 'd, 'c) t
val mapWithKey : ('a, 'b, 'c) t -> ('a -> 'b -> 'd) -> ('a, 'd, 'c) t
val get : ('a, 'b, 'c) t -> 'a -> 'b option
val getUndefined : ('a, 'b, 'c) t -> 'a -> 'b Js.undefined
val getWithDefault : ('a, 'b, 'c) t -> 'a -> 'b -> 'b
val getExn : ('a, 'b, 'c) t -> 'a -> 'b
val has : ('a, 'b, 'c) t -> 'a -> bool
val fromArray : ('k * 'a) array -> id:('k, 'identity) id -> ('k, 'a, 'identity) t
val set : ('a, 'b, 'c) t -> 'a -> 'b -> unit
val mergeManyAux : ('a, 'b) N.t -> ('a * 'b) A.t -> cmp:('a, 'c) N.cmp -> ('a, 'b) N.t
val mergeMany : ('a, 'b, 'c) t -> ('a * 'b) A.t -> unit
OCaml

Innovation. Community. Security.