Lazy list programming via Javascript Iterable interface
fp-ts bindings for Iterable
types, allowing for programming lazy and infinite lists.
This could (soon) be used as a drop in replacement for the module fp-ts/ReadonlyArray
# npm
npm install fp-ts-iterable
# yarn
yarn add fp-ts-iterable
# pnpm
pnpm add fp-ts-iterable
Please visit the documentation for the API surface.
IterableTask
for interop with AsyncIterator
NonemptyIterable
NonempyIterableTask
Iterable
ReadonlyArray
, it's recommended to coerce it to an Iterable
using FromReadonlyArray
.\*Right*
functionsRight
in their names require buffering all values so it knows where the end is.Iterable
is large or infinite, it may cause an out of memory error.Right
.AsyncIterable
(Upcoming)AsyncIterable<A>
is Iterable<Promise<A>>
, but should be coerced to Iterable<Task<A>>
via FromAsyncIterable