I’ve implemented it as a sequence wrapper. Is ther...
# stdlib
n
I’ve implemented it as a sequence wrapper. Is there interest in including it in the stdlib? If so i can send in a PR
d
Then, you can do
takeWhile { it != 4 }
? I think there was a talk before about performance optimization on stdlib provided functions, you might lose that with your own impl.
n
{it != 3}
was just an example. I actually need to use a more complicated predicate and items are not in a predictable order.