Skip to content

v0.7.0

Latest
Compare
Choose a tag to compare
@0x5a17ed 0x5a17ed released this 06 Nov 21:34
· 31 commits to main since this release

v0.7.0

This project follows the semver rules of versioning. The major zero version is for initial development. Anything MAY change at any time. The public API SHOULD NOT be considered stable. This release introduces some breaking changes with the previous release.

💥 Breaking

  • Breaking: The Iterator Protocol was changed slightly. The Value() function is not required to raise a panic error if there aren't any items left anymore or the first call to Next() hasn't been made yet.
    The upside of this change is that it allows to simplify the implementation of certain iterators.
  • Breaking The StringIter iterator structure was renamed to StringIterator for consistency reasons.
  • Breaking The RangeIter iterator structure was renamed to RangeIterator for consistency reasons.
  • Breaking The range family of functions R, From and Steps were renamed to Range, RangeFrom and RangeStep for consistency reasons with the new Count family of functions.
  • Breaking The Channel function was renamed to In for consistency reasons. It was a left-over from moving iterators into their own sub-packages.

✨ New Features

  • Added new function Head and HeadOrElse.
  • Added PullFn iterator to turn a function returning a value plus a boolean into an iterator.
  • Added IterFn iterator to turn other forms of stateful iterators into itkit compatible iterators.
  • Added Count, CountFrom, CountStep family of functions.
  • Added Fill iterator.
  • Added Copies iterator.

That's it! And thank you very much for your continued patronage.