You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note, although it is easy to change the function in this example to achieve the same result, in my use case I do not want to execute next on the value after the last desired output.
The text was updated successfully, but these errors were encountered:
Thanks for question :) I don't have any plan to add such a operator. It's because I didn't see any use case for it (but I see it can be useful). My background is .net (also Rx and Ix) and there is only takeWhile, here is the whole list of operators https://github.com/marcinnajder/powerseq/blob/master/docs/mapping.md.
But you can always add a new operatator seamlessly to powerseq without modifying source code of powerseq. Just copy a file https://github.com/marcinnajder/powerseq/blob/master/src/operators/takewhile.ts to your project, change it to takeWhileInclusive and import it from ES6/TS file. Everything should work fine. We can also consider adding it to powerseq.
Have you seen takeWhileInclusive operator in any other technology/language?
Hi!
Do you have any plans to add an inclusive
takeWhile
?An example of where this would be useful:
Note, although it is easy to change the function in this example to achieve the same result, in my use case I do not want to execute
next
on the value after the last desired output.The text was updated successfully, but these errors were encountered: