Commit 4724467
Allow AsyncSeq.mergeAll to accept seq instead of list
Widen the parameter type of AsyncSeq.mergeAll from 'AsyncSeq<'T> list'
to 'seq<AsyncSeq<'T>>'. This is backward-compatible since list implements
seq in F#, but also allows callers to pass arrays, other collections, or
lazy sequences without needing an explicit conversion.
The implementation materialises the seq to an array immediately since
random-access (indexed look-up) and Length are needed internally.
Closes #165
Co-authored-by: Copilot <[email protected]>1 parent 51fd03f commit 4724467
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1700 | 1700 | | |
1701 | 1701 | | |
1702 | 1702 | | |
1703 | | - | |
| 1703 | + | |
1704 | 1704 | | |
| 1705 | + | |
1705 | 1706 | | |
1706 | 1707 | | |
1707 | 1708 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| |||
0 commit comments