Commit 46c5f39
refactor: simplify splitAt 'rest' taskSeq to use while!
The 'rest' sequence returned by splitAt used a manual go2 flag and an
explicit MoveNextAsync pre-advance before its loop. This is equivalent
to a direct 'while! e.MoveNextAsync() do yield e.Current' guarded by
the existing 'go' flag (which tracks whether the source was exhausted
while filling 'first').
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9984a8b commit 46c5f39
File tree
2 files changed
+6
-11
lines changed- src/FSharp.Control.TaskSeq
2 files changed
+6
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
848 | 848 | | |
849 | 849 | | |
850 | 850 | | |
851 | | - | |
| 851 | + | |
| 852 | + | |
852 | 853 | | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
863 | 857 | | |
864 | 858 | | |
865 | 859 | | |
| |||
0 commit comments