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 endIndex
. - Add new method
chunk()
to support slicing by a fixed number of elements. - Add new overloads for
elementAt(Index)
andelementAtOrDefault(Index)
methods to support get element by forward or reverse index. - Add new overloads for
firstOrDefault()
,lastOrDefault()
andsingleOrDefault()
methods to support return custom default value when sequence is empty. - Add new overloads for
max()
,maxBy()
,min()
andminBy()
methods to support custom comparer. - Add new overloads for
take(Range)
method to support get elements between start and endIndex
. - Add new overloads for
toMap()
andtoLinkedMap()
methods to specify which key to keep when conflicting.
Changes
- Modify first param type of methods
exceptBy(...)
andintersectBy(...)
fromIEnumerable<? extends TSource>
toIEnumerable<? extends TKey>
.
Tips
- Now
skipLast()
andtakeLast()
methods support mutable sequence.