The interface module contains all helper functions to interface from or to
other representations.
This means simple data representations like arrays, objecs, Sets, Maps, strings, ...
but it also contains a few 'generators' that produce an iterator based on some
input parameters (like itr8Range and itr8Interval).
Last but not least, it contains forEach which is 'the' tool to actually start
pulling items off of the iterator, and to initiate actions based on the data
they provide.
REMARK: all interface functions that have dependencies (RxJS, NodeJS streams, ...) have been moved
to itr8/peer, which keeps this part of the library dependency-free, and theoretically usable
both in the browser and from NodeJS.
This module will export ALL interface functions.
Example
import { interfaceFn } from'itr8'
You can also import more specifically what you need:
The interface module contains all helper functions to interface from or to other representations. This means simple data representations like arrays, objecs, Sets, Maps, strings, ... but it also contains a few 'generators' that produce an iterator based on some input parameters (like itr8Range and itr8Interval).
Last but not least, it contains forEach which is 'the' tool to actually start pulling items off of the iterator, and to initiate actions based on the data they provide.
REMARK: all interface functions that have dependencies (RxJS, NodeJS streams, ...) have been moved to itr8/peer, which keeps this part of the library dependency-free, and theoretically usable both in the browser and from NodeJS.
This module will export ALL interface functions.
Example
You can also import more specifically what you need:
You can also import all interface functions with