Module Js.Iterator

Bindings to functions on Iterator

type t('a) = Js.iterator('a);
type value('a) = {
  1. done_: option(bool),
  2. value: option('a),
};
let next: t('a) => value('a);
let toArray: t('a) => array('a);
let toArrayWithMapper: t('a) => f:('a => 'b) => array('b);