Releases: blakeembrey/iterative
Releases · blakeembrey/iterative
Add `iterable` function
Changed
- Add
iterable
function for converting iterator to iterable aa4eee8
Fix Async Support
Fixed
- Fixed
iter
support inasync
code - Fixed
Promise
return forreduce
- Use
AnyIterable
type for asyncsum
andall
Zip With Value
Added
- Expose
zipWithValue
, similar API tozip_longest
in Python where you can specify afillValue
explicitly
Iterable Iterators
Fixed
- Function return signatures should use
IterableIterator
to 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
,max
andsum
functions to mirror Python built-in functions
Changed
- Support
cmp
argument support tosorted
function
Dict Function
Added
- Expose
dict(iterable)
function for creating a JavaScript object from an iterable
Sorted Function
Added
- Add
sorted
function for returning a sorted list from an iterable
Flatten Function
Added
- Add
flatten
function to "chain" an iterable of iterables (allows non-exhaustive iterables returning iterables)