Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Releases: proc7ts/push-iterator

Release 2.1.0

09 Oct 12:36
Compare
Choose a tag to compare

New Features

  • Add overIterator() function.
    Creates a push iterable over elements of iterator created by the given function.

Release 2.0.0

09 Oct 08:26
Compare
Choose a tag to compare

Changes

  • Iterator API redesign.
    PushIterator extends IterableIterator with [PushIterator__symbol]() and isOver() methods.
  • Instant iteration support.
    PushIterable extends Iterable with [PushIterator__symbol]() method, just like the one in PushIterator.
    This makes it possible to start iteration without constructing a new iterator.
    Iteration can be stopped, or suspended and then resumed with continuation iterator returned from this method.

New Features

  • Add pushHead() and itsHead() functions.
    They iterate over the head elements of the given (push) iterable and return its tail iterator.
  • Add pushIterated() and itsIterated() functions.
    They iterates over elements of the given (push) iterable.
  • Add itsFind() function.
    Searches for the value in iterable.
  • Add itsMatch() function.
    Extracts the first element matching the given condition from iterable.

Release 1.1.0

05 Oct 08:11
Compare
Choose a tag to compare

New Features

  • Add array-specific operations: filterArray(), flatMapArray(), and mapArray().
  • Add itsElements() function - an Array.from() analog optimized for push iterables.
  • Expose iteratorOf() utility function.

Release 1.0.0

01 Oct 06:41
Compare
Choose a tag to compare

Initial release.