itercol
A lazy, generator-based, JS library for handling sequences in a concise, efficient way.
API
iter(iterator)
Create a new iter
by passing its constructor an iterator.
const it = ;
iter::filter(predicate)
Return a filtered iter (lazy).
iter::map(mapper)
Return a mapped iter (lazy).
iter::limit(limit)
Return a limited iter.
iter::flatten()
Flatten any inner iterable of iterables.
Usage
const it = ;const arr = Array;t;
iter::forEach(fn)
Consume the iter
object in a functional manner. This function doesn't chain.