4.2.6 • Published 2 years ago
fp-ts-iterable v4.2.6
fp-ts-iterable
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
Installation
# npm
npm install fp-ts-iterable
# yarn
yarn add fp-ts-iterable
# pnpm
pnpm add fp-ts-iterable
Documentation
Please visit the documentation for the API surface.
Upcoming
- Structures
IterableTask
for interop withAsyncIterator
NonemptyIterable
NonempyIterableTask
Recommendations
Coersion from types that are Iterable
- If coersing from something like a
ReadonlyArray
, it's recommended to coerce it to anIterable
usingFromReadonlyArray
. - There is no performance benefit, but it could alleviate bugs before they happen.
\*Right*
functions
- All functions using the word
Right
in their names require buffering all values so it knows where the end is. - If the
Iterable
is large or infinite, it may cause an out of memory error. Ensure infinite iterables end by using a skip combinator that does not contain the wordRight
.
AsyncIterable
(Upcoming)
AsyncIterable<A>
isIterable<Promise<A>>
, but should be coerced toIterable<Task<A>>
viaFromAsyncIterable
4.2.6
2 years ago
4.3.0
2 years ago
4.2.5
2 years ago
4.2.4
2 years ago
4.2.3
2 years ago
4.2.2
2 years ago
4.2.1
2 years ago
4.2.0
2 years ago
4.1.0
2 years ago
4.0.0
2 years ago
3.4.0
2 years ago
3.3.3
2 years ago
3.3.2
2 years ago
3.3.1
2 years ago
3.3.0
2 years ago
3.2.0
2 years ago
3.1.1
2 years ago
3.1.0
2 years ago
3.0.2
2 years ago
2.0.0
2 years ago
1.1.2
2 years ago
1.2.0
2 years ago
1.1.1
2 years ago