package melange

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

Belt.MutableSet

The top level provides generic mutable set operations.

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

module Int : sig ... end

This module is Belt.MutableSet specialized with key type to be a primitive type.

module String : sig ... end

This module is Belt.MutableSet specialized with key type to be a primitive type.

module N : sig ... end
module A : sig ... end

Belt.Array Utililites for Array functions

module Sort : sig ... end

A module for Array sort relevant utiliites

type ('k, 'id) id = (module Belt__.Belt_Id.Comparable with type identity = 'id and type t = 'k)
type ('key, 'id) cmp = ('key -> 'key -> int) Js.Fn.arity2
type ('value, 'id) t = {
  1. cmp : ('value, 'id) cmp;
  2. mutable data : 'value N.t;
}
val remove0 : 'a N.node -> 'b -> cmp:('c -> 'd -> int) Js.Fn.arity2 -> 'e N.t
val remove : ('a, 'b) t -> 'c -> unit
val removeMany0 : 'a N.node -> 'b A.t -> int -> int -> cmp:('c -> 'a -> int) Js.Fn.arity2 -> 'a N.node option
val removeMany : ('a, 'b) t -> 'c A.t -> unit
val removeCheck0 : 'a N.node -> 'b -> bool ref -> cmp:('c -> 'c -> int) Js.Fn.arity2 -> 'e N.t
val removeCheck : ('a, 'b) t -> 'c -> bool
val addCheck0 : 'a N.t -> 'b -> bool ref -> cmp:('c -> 'd -> int) Js.Fn.arity2 -> 'a N.t
val addCheck : ('a, 'b) t -> 'c -> bool
val add : ('a, 'b) t -> 'c -> unit
val addArrayMutate : 'a N.t -> 'b A.t -> cmp:('a, 'c) N.cmp -> 'a N.t
val mergeMany : ('a, 'b) t -> 'c A.t -> unit
val make : id:('value, 'identity) id -> ('value0, 'identity0) t
val isEmpty : ('a, 'b) t -> bool
val minimum : ('a, 'b) t -> 'c option
val minUndefined : ('a, 'b) t -> 'c Js.undefined
val maximum : ('a, 'b) t -> 'c option
val maxUndefined : ('a, 'b) t -> 'c Js.undefined
val forEachU : ('a, 'b) t -> ('c -> unit) Js.Fn.arity1 -> unit
val forEach : ('a, 'b) t -> ('c -> unit) -> unit
val reduceU : ('a, 'b) t -> 'c -> ('d -> 'e -> 'd) Js.Fn.arity2 -> 'f
val reduce : ('a, 'b) t -> 'c -> ('d -> 'e -> 'f) -> 'g
val everyU : ('a, 'b) t -> ('c -> bool) Js.Fn.arity1 -> bool
val every : ('a, 'b) t -> ('c -> bool) -> bool
val someU : ('a, 'b) t -> ('c -> bool) Js.Fn.arity1 -> bool
val some : ('a, 'b) t -> ('c -> bool) -> bool
val size : ('a, 'b) t -> int
val toList : ('a, 'b) t -> 'c list
val toArray : ('a, 'b) t -> 'c array
val fromSortedArrayUnsafe : 'value array -> id:('value0, 'identity) id -> ('value, 'identity0) t
val checkInvariantInternal : ('a, 'b) t -> unit
val fromArray : 'value array -> id:('value0, 'identity) id -> ('value, 'identity0) t
val cmp : ('a, 'b) t -> ('c, 'd) t -> int
val eq : ('a, 'b) t -> ('c, 'd) t -> bool
val get : ('a, 'b) t -> 'c -> 'd option
val getUndefined : ('a, 'b) t -> 'c -> 'd Js.undefined
val getExn : ('a, 'b) t -> 'c -> 'd
val split : ('a, 'b) t -> 'c -> (('d, 'e) t * ('f, 'g) t) * bool
val keepU : ('a, 'b) t -> ('c -> bool) Js.Fn.arity1 -> ('d, 'e) t
val keep : ('a, 'b) t -> ('c -> bool) -> ('a, 'b) t
val partitionU : ('a, 'b) t -> ('c -> bool) Js.Fn.arity1 -> ('d, 'e) t * ('f, 'g) t
val partition : ('a, 'b) t -> ('c -> bool) -> ('a, 'b) t * ('a, 'b) t
val subset : ('a, 'b) t -> ('c, 'd) t -> bool
val intersect : ('a, 'b) t -> ('c, 'd) t -> ('e, 'f) t
val diff : ('a, 'b) t -> ('c, 'd) t -> ('e, 'f) t
val union : ('a, 'b) t -> ('c, 'd) t -> ('e, 'f) t
val has : ('a, 'b) t -> 'c -> bool
val copy : ('a, 'b) t -> ('c, 'd) t
OCaml

Innovation. Community. Security.