Add skipWhile
, skipWhileInclusive
with async variants, and takeUntil
etc
#130
Labels
feature request
New feature or enhancement request
topic: surface area
Adds functions to the public surface area
Milestone
Similar to #122. The naming should be
skipWhile
, even thoughskipUntil
was proposed as well in that thread. F# Core hasskipWhile
, so we should stick with that. Also, I think they are semantically different:Skip while
skipWhile
: as long as predicate is true, keep skipping, then stopskipWhileAsync
: same, but asyncskipWhileInclusive
: same, but yield first, then test predicate on yielded valueskipWhileInclusiveAsync
: same, but asyncSkip until
skipUntil
: skip until predicate becomes trueskipUntilAsync
: same, but asyncskipUntilInclusive
: same, but skip first, then test predicateskipUntilInclusiveAsync
:same, but asyncateAnd the missing Take Until
We should include these if we do the
skipUntilXXX
functions:takeUntil
: as long as predicate is false, keep skipping, then stoptakeUntilAsync
: same, but asynctakeUntilInclusive
: same, but yield first, then test predicate on yielded valuetakeUntilInclusiveAsync
: same, but asyncNot sure we should have both
until
andwhile
, as they are logically each other's opposites.The text was updated successfully, but these errors were encountered: