Commit 5e369b5
feat: add TaskSeq.rev, sort, sortDescending, sortBy/Async, sortByDescending/Async, sortWith (101 tests)
Implements the remaining sort/rev family of functions that were previously
marked as '?' in the README (requiring pre-materialisation before streaming).
New functions:
- TaskSeq.rev — reverses by materialising into array first
- TaskSeq.sort — ascending natural comparison sort
- TaskSeq.sortDescending — descending natural comparison sort
- TaskSeq.sortBy — ascending sort by projection (sync)
- TaskSeq.sortByAsync — ascending sort by projection (async)
- TaskSeq.sortByDescending — descending sort by projection (sync)
- TaskSeq.sortByDescendingAsync — descending sort by projection (async)
- TaskSeq.sortWith — sort using custom comparison function
All functions materialise the full input sequence, apply the corresponding
Array sort primitive, then stream elements back as a TaskSeq.
Includes 101 tests. README and release-notes updated.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 43eff83 commit 5e369b5
File tree
8 files changed
+577
-7
lines changed- src
- FSharp.Control.TaskSeq.Test
- FSharp.Control.TaskSeq
8 files changed
+577
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments