Module Js.Set
Bindings to functions in Set
ES6 Set API
ocaml
type 'a treasonml
type t('a);ocaml
val make : unit -> 'a treasonml
let make: unit => t('a);ocaml
val fromArray : 'a array -> 'a treasonml
let fromArray: array('a) => t('a);ocaml
val toArray : 'a t -> 'a arrayreasonml
let toArray: t('a) => array('a);ocaml
val size : 'a t -> intreasonml
let size: t('a) => int;ocaml
val add : value:'a -> 'a t -> 'a treasonml
let add: value:'a => t('a) => t('a);ocaml
val clear : 'a t -> unitreasonml
let clear: t('a) => unit;ocaml
val delete : value:'a -> 'a t -> boolreasonml
let delete: value:'a => t('a) => bool;ocaml
val forEach : f:('a -> unit) -> 'a t -> unitreasonml
let forEach: f:('a => unit) => t('a) => unit;ocaml
val has : value:'a -> 'a t -> boolreasonml
let has: value:'a => t('a) => bool;ocaml
val values : 'a t -> 'a Js.iteratorreasonml
let values: t('a) => Js.iterator('a);ocaml
val entries : 'a t -> ('a * 'a) Js.iteratorreasonml
let entries: t('a) => Js.iterator(('a, 'a));