Commit ed33d93
feat: add TaskSeq.exists2, forall2, forall2Async, fold2, fold2Async (206 tests)
Implements the next batch of '2'-functions from the README roadmap:
TaskSeq.exists2 : ('T -> 'U -> bool) -> TaskSeq<'T> -> TaskSeq<'U> -> Task<bool>
TaskSeq.forall2 : ('T -> 'U -> bool) -> TaskSeq<'T> -> TaskSeq<'U> -> Task<bool>
TaskSeq.forall2Async: ('T -> 'U -> #Task<bool>) -> TaskSeq<'T> -> TaskSeq<'U> -> Task<bool>
TaskSeq.fold2 : ('S -> 'T -> 'U -> 'S) -> 'S -> TaskSeq<'T> -> TaskSeq<'U> -> Task<'S>
TaskSeq.fold2Async : ('S -> 'T -> 'U -> #Task<'S>) -> 'S -> TaskSeq<'T> -> TaskSeq<'U> -> Task<'S>
Semantics: stop at the shorter sequence (consistent with map2/iter2/zip).
Files changed:
- TaskSeqInternal.fs: exists2, forall2, forall2Async, fold2, fold2Async
- TaskSeq.fs: wrapper members
- TaskSeq.fsi: public signatures with XML doc
- TaskSeq.Exists2Forall2Fold2.Tests.fs: 206 tests (null, empty, immutable, side-effects)
- FSharp.Control.TaskSeq.Test.fsproj: new test file reference
- release-notes.txt: entry under v0.6.0
- README.md: mark exists2, fold2/fold2Async, forall2/forall2Async as done
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 5a03593 commit ed33d93
File tree
7 files changed
+684
-5
lines changed- src
- FSharp.Control.TaskSeq.Test
- FSharp.Control.TaskSeq
7 files changed
+684
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
293 | | - | |
| 293 | + | |
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
0 commit comments