Skip to content

Version 6.0.0

Latest
Compare
Choose a tag to compare
@timandy timandy released this 18 Dec 08:16
· 1 commit to master since this release

Release notes

Synchronize changes from .net 6.

Features

  • Add type Index indicates a forward or reverse index.
  • Add type Range indicates a range between start and end Index.
  • Add new method chunk() to support slicing by a fixed number of elements.
  • Add new overloads for elementAt(Index) and elementAtOrDefault(Index) methods to support get element by forward or reverse index.
  • Add new overloads for firstOrDefault(), lastOrDefault() and singleOrDefault() methods to support return custom default value when sequence is empty.
  • Add new overloads for max(), maxBy(), min() and minBy() methods to support custom comparer.
  • Add new overloads for take(Range) method to support get elements between start and end Index.
  • Add new overloads for toMap() and toLinkedMap() methods to specify which key to keep when conflicting.

Changes

  • Modify first param type of methods exceptBy(...) and intersectBy(...) from IEnumerable<? extends TSource> to IEnumerable<? extends TKey>.

Tips

  • Now skipLast() and takeLast() methods support mutable sequence.

Links