Enum.split_while/2

defmodule Enum do
  def split_while(enumerable, fun)
end

Splits enumerable in two at the position of the element for which fun returns a falsy value (false or nil) for the first time.