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

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

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

Belt.Array Utililites for Array functions

type ('a, 'id) eq = ('a -> 'a -> bool) Js.Fn.arity2
type ('a, 'id) hash = ('a -> int) Js.Fn.arity1
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 -> int) Js.Fn.arity1 -> 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 -> int) Js.Fn.arity1 -> ('c, 'd, 'a N.bucket) C.container -> unit
val removeBucket : eq:('a -> 'a -> bool) Js.Fn.arity2 -> ('c, 'd, 'e) C.container -> 'f -> 'g -> 'a -> 'a N.bucket -> 'a N.bucket -> unit
val remove : (('a -> int) Js.Fn.arity1, ('a -> 'a -> bool) Js.Fn.arity2, 'a N.bucket) C.container -> 'a -> unit
val addBucket : ('a, 'b, 'c) C.container -> 'd -> 'd N.bucket -> eq:('d -> 'd -> bool) Js.Fn.arity2 -> unit
val add0 : ('a, 'b, 'c N.bucket) C.container -> 'c -> hash:('c -> int) Js.Fn.arity1 -> eq:('c -> 'c -> bool) Js.Fn.arity2 -> unit
val add : (('a -> int) Js.Fn.arity1, ('a -> 'a -> bool) Js.Fn.arity2, 'a N.bucket) C.container -> 'a -> unit
val memInBucket : eq:('a -> 'a -> bool) Js.Fn.arity2 -> 'a -> 'a N.bucket -> bool
val has : (('a -> int) Js.Fn.arity1, ('a -> 'a -> bool) Js.Fn.arity2, 'a N.bucket) C.container -> 'a -> bool
val make : hintSize:int -> id:('value, 'identity) id -> (('value -> int) Js.Fn.arity1, ('value -> 'value -> bool) Js.Fn.arity2, '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 -> int) Js.Fn.arity1, ('a -> 'a -> bool) Js.Fn.arity2, 'a N.bucket) C.container
val mergeMany : (('a -> int) Js.Fn.arity1, ('a -> 'a -> bool) Js.Fn.arity2, 'a N.bucket) C.container -> 'a A.t -> unit
OCaml

Innovation. Community. Security.