This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
Releases: proc7ts/a-iterable
Releases · proc7ts/a-iterable
Release 2.0.0
- Add call-thru support
Release 1.2.0
New Features
- New plain iterable construction utilities:
overArray()
to iterate over array elementsoverEntries()
to iterate over object key/value entriesoverKeys()
to iterate ober object keysoverNone()
to create an empty iterable
- New plain iterable manipulation utilities corresponding to the ones in
AIterable
:
filterIt()
flatMapIt()
- 'mapIt()`
- New plain iterable terminators:
itsEach()
itsEvery()
itsReduce()
- New plain iterable utilities:
itsIterator()
- a shortcut to start the iteration to use instead ofiterable[Symbol.iterator]()
makeIt()
to create arbitrary (optionally revertible) iterable
AIterable
mixin:
toAIterable()
- a function that extends a class implementingIterable
withAIterable
API
Improvements
reverseArray()
accepts arbitrary array-like structures, not just arrays.itsLast()
accepts arbitrary array-like structures, not just arrays.
Incompatible Changes
reverseIterator()
is renamed toreverseIt()
to conform to common naming conventions.reverseIt()
andreverseArray()
return non-revertible iterables nowAIterable.of()
returns anArrayLikeIterable
instance.
That's because anArray.flatMap()
expects its callback function to return an array, whileAIterable
expects justIterable
Release 1.1.1
- Ease the
RevertibleIterable
API. Therevert()
method returnsIterable
instead ofRevertibleIterable
now - Implement generic
reverseIterable()
utility function. - Implement
reverse()
method of iterables constructed withAIterable.from()
usingreverseIterable()
function.
Release 1.1.0
Introduce revertible iterables support:
RevertibleIterable
interface (already implemented by arrays)AIterable.reverse()
method- Special arrays treatment
- Additional utility methods:
itsLast()
to find the last element of iterablereverseArray()
to construct a reverted iterable of array elements
Release 1.0.1
Implement every()
and none()
methods
Release 1.0.0
Initial release