Stream.take_while/2
defmodule Stream do
def take(stream, fun)
end
Lazily takes elements of the enumerable while the given function returns a truthy value.
defmodule Stream do
def take(stream, fun)
end
Lazily takes elements of the enumerable while the given function returns a truthy value.