A.Vector.drop_while

You're seeing just the function drop_while, go back to A.Vector module for more information.

Specs

drop_while(t(val), (val -> as_boolean(term()))) :: t(val) when val: value()

Drops elements at the beginning of the vector while fun returns a truthy value.

Runs in linear time.

Examples

iex> A.Vector.new(1..10) |> A.Vector.drop_while(fn x -> x < 7 end)
vec([7, 8, 9, 10])
iex> A.Vector.new([1, true, %{}, nil, "abc"]) |> A.Vector.drop_while(fn x -> x end)
vec([nil, "abc"])