package melange

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

Belt.HashSet

The top level provides generic mutable hash set operations.

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

module Int : sig ... end
module String : sig ... end

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

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

Belt.Array Utililites for Array functions

type ('a, 'id) eq
type ('a, 'id) hash
type ('a, 'id) id = (module Belt__.Belt_Id.Hashable with type identity = 'id and type t = 'a)
type ('a, 'id) t = (('a, 'id) hash, ('a, 'id) eq, 'a) N.t
val copyBucket : hash:('a, 'b) Belt__.Belt_Id.hash -> h_buckets:'a N.bucket C.opt A.t -> ndata_tail:'a N.bucket C.opt A.t -> 'a N.bucket C.opt -> unit
val tryDoubleResize : hash:('a, 'b) Belt__.Belt_Id.hash -> ('c, 'd, 'a N.bucket) C.container -> unit
val removeBucket : eq:('a, 'b) Belt__.Belt_Id.eq -> ('c, 'd, 'e) C.container -> 'f -> 'g -> 'a -> 'a N.bucket -> 'a N.bucket -> unit
val remove : (('a, 'b) Belt__.Belt_Id.hash, ('a, 'c) Belt__.Belt_Id.eq, 'a N.bucket) C.container -> 'a -> unit
val addBucket : ('a, 'b, 'c) C.container -> 'd -> 'd N.bucket -> eq:('d, 'e) Belt__.Belt_Id.eq -> unit
val add0 : ('a, 'b, 'c N.bucket) C.container -> 'c -> hash:('c, 'd) Belt__.Belt_Id.hash -> eq:('c, 'e) Belt__.Belt_Id.eq -> unit
val add : (('a, 'b) Belt__.Belt_Id.hash, ('a, 'c) Belt__.Belt_Id.eq, 'a N.bucket) C.container -> 'a -> unit
val memInBucket : eq:('a, 'b) Belt__.Belt_Id.eq -> 'a -> 'a N.bucket -> bool
val has : (('a, 'b) Belt__.Belt_Id.hash, ('a, 'c) Belt__.Belt_Id.eq, 'a N.bucket) C.container -> 'a -> bool
val make : hintSize:int -> id:('value, 'identity) id -> (('value, 'identity) Belt__Belt_Id.hash, ('value, 'identity) Belt__Belt_Id.eq, 'a) C.container
val clear : ('a, 'b, 'c) C.container -> unit
val size : ('a, 'b, 'c) C.container -> int
val forEachU : ('a, 'b, 'c) N.t -> ('c -> unit) Js.Fn.arity1 -> unit
val forEach : ('a, 'b, 'c) N.t -> ('c -> unit) -> unit
val reduceU : ('a, 'b, 'c) N.t -> 'd -> ('d -> 'c -> 'd) Js.Fn.arity2 -> 'd
val reduce : ('a, 'b, 'c) N.t -> 'd -> ('d -> 'c -> 'd) -> 'd
val logStats : ('a, 'b, 'c) N.t -> unit
val toArray : ('a, 'b, 'c) N.t -> 'c array
val copy : ('a, 'b, 'c) N.t -> ('a, 'b, 'c) N.t
val getBucketHistogram : ('a, 'b, 'c) N.t -> int array
val isEmpty : ('a, 'b, 'c) C.container -> bool
val fromArray : 'a A.t -> id:('a, 'identity) id -> (('a, 'identity) Belt__Belt_Id.hash, ('a, 'identity) Belt__Belt_Id.eq, 'a N.bucket) C.container
val mergeMany : (('a, 'b) Belt__.Belt_Id.hash, ('a, 'c) Belt__.Belt_Id.eq, 'a N.bucket) C.container -> 'a A.t -> unit
OCaml

Innovation. Community. Security.