Skip to content

Commit a9cdbb4

Browse files
committed
Modify change log
1 parent bc37707 commit a9cdbb4

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

CHANGELOG.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
<!--变更日志-->
22

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+
328
# v5.0.0 Release notes
429
`Synchronize changes from .net 5.`
530

@@ -18,7 +43,7 @@
1843
- In order to reduce sorting time, methods `first(predicate)` and `firstOrDefault(predicate)` after `OrderedEnumerable` call the predicate once per element.
1944
So don't call side-effect methods in linq.
2045
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.
2247
See [https://github.com/dotnet/runtime/pull/42506](https://github.com/dotnet/runtime/pull/42506).
2348

2449
# Links

0 commit comments

Comments
 (0)