Module Js.Set

Bindings to functions in Set

ES6 Set API

type t('a);
let make: unit => t('a);
let fromArray: array('a) => t('a);
let toArray: t('a) => array('a);
let size: t('a) => int;
let add: value:'a => t('a) => t('a);
let clear: t('a) => unit;
let delete: value:'a => t('a) => bool;
let forEach: f:('a => unit) => t('a) => unit;
let has: value:'a => t('a) => bool;
let values: t('a) => Js.iterator('a);
let entries: t('a) => Js.iterator(('a, 'a));