Releases: blakeembrey/iterative
Releases · blakeembrey/iterative
Add `iterable` function
Changed
- Add
iterablefunction for converting iterator to iterable aa4eee8
Fix Async Support
Fixed
- Fixed
itersupport inasynccode - Fixed
Promisereturn forreduce - Use
AnyIterabletype for asyncsumandall
Zip With Value
Added
- Expose
zipWithValue, similar API tozip_longestin Python where you can specify afillValueexplicitly
Iterable Iterators
Fixed
- Function return signatures should use
IterableIteratorto easily chainnext(filter(map(...)))
Product
Added
- Support
product(...iterables)
Async Iterative
Added
- Complete support for async iterables using a separate package entry point:
iterative/dist/async
Python Built-In Functions
Added
- Added
len,min,maxandsumfunctions to mirror Python built-in functions
Changed
- Support
cmpargument support tosortedfunction
Dict Function
Added
- Expose
dict(iterable)function for creating a JavaScript object from an iterable
Sorted Function
Added
- Add
sortedfunction for returning a sorted list from an iterable
Flatten Function
Added
- Add
flattenfunction to "chain" an iterable of iterables (allows non-exhaustive iterables returning iterables)