|
1 | 1 | <!--变更日志-->
|
2 | 2 |
|
| 3 | +# v6.0.0 Release notes |
| 4 | +`Synchronize changes from .net 6.` |
| 5 | + |
| 6 | +### Features |
| 7 | +- Add type `Index` indicates a forward or reverse index`. |
| 8 | +- Add type `Range` indicates a range between start and end `Index`. |
| 9 | +- Add new method `chunk()` to support slicing by a fixed number of elements. |
| 10 | +- Add new overloads for `elementAt(Index)` and `elementAtOrDefault(Index)` methods to support get element by forward or reverse index. |
| 11 | +- Add new overloads for `firstOrDefault()`, `lastOrDefault()` and `singleOrDefault()` methods to support return custom default value when sequence is empty. |
| 12 | +- Add new overloads for `max()`, `maxBy()`, `min()` and `minBy()` methods to support custom comparer. |
| 13 | +- Add new overloads for `take(Range)` method to support get elements between start and end `Index`. |
| 14 | +- Add new overloads for `toMap()` and `toLinkedMap()` methods to specify which key to keep when conflicting. |
| 15 | + |
| 16 | +### Changes |
| 17 | +- Modify first param type of methods `exceptBy(...)` and `intersectBy(...)` from `IEnumerable<? extends TSource>` to `IEnumerable<? extends TKey>`. |
| 18 | + |
| 19 | +### Tips |
| 20 | +- Now `skipLast()` and `takeLast()` methods support mutable sequence. |
| 21 | + |
| 22 | +# Links |
| 23 | +- Download [https://repo1.maven.org/maven2/com/bestvike/linq/6.0.0/](https://repo1.maven.org/maven2/com/bestvike/linq/6.0.0/) |
| 24 | +- Source code [https://github.com/timandy/linq/tree/v6.0.0](https://github.com/timandy/linq/tree/v6.0.0) |
| 25 | + |
| 26 | +--- |
| 27 | + |
3 | 28 | # v5.0.0 Release notes
|
4 | 29 | `Synchronize changes from .net 5.`
|
5 | 30 |
|
|
18 | 43 | - In order to reduce sorting time, methods `first(predicate)` and `firstOrDefault(predicate)` after `OrderedEnumerable` call the predicate once per element.
|
19 | 44 | So don't call side-effect methods in linq.
|
20 | 45 | See [https://github.com/dotnet/runtime/issues/31554](https://github.com/dotnet/runtime/issues/31554).
|
21 |
| -- Don't reuse the lazy result of 'skipLast' and 'takeLast' when the source will be modified. |
| 46 | +- Don't reuse the lazy result of `skipLast` and `takeLast` when the source will be modified. |
22 | 47 | See [https://github.com/dotnet/runtime/pull/42506](https://github.com/dotnet/runtime/pull/42506).
|
23 | 48 |
|
24 | 49 | # Links
|
|
0 commit comments