natpryce
12/10/2017, 2:57 PMdave08
12/11/2017, 3:12 AMtakeWhile { it != 4 }
? I think there was a talk before about performance optimization on stdlib provided functions, you might lose that with your own impl.natpryce
12/11/2017, 6:45 AM{it != 3}
was just an example. I actually need to use a more complicated predicate and items are not in a predictable order.