Stream

take_while/2

take(enumerable, fun)

Lazily takes elements of the enumerable while the given function returns a truthy value.