fsprojects / FSharp.Control.TaskSeq

A computation expression and module for seamless working with IAsyncEnumerable<'T> as if it is just another sequence
MIT License
91 stars 7 forks source link

Improve `takewhile`, `takeWhileInclusive` and `skipwhile`, `skipWhileInclusive` #235

Closed abelbraaksma closed 6 months ago

abelbraaksma commented 6 months ago

Base on input from #223 (thanks @bartelink) and me rethinking my own wrong assumptions (see https://github.com/fsprojects/FSharp.Control.TaskSeq/pull/223#issuecomment-1998830839), we're now finally a step in the right direction: back to simplified and easy-to-read algorithms (imho).

TODO:

bartelink commented 6 months ago

A very pleasing outcome - nicely done!