A.Enum.split_while
You're seeing just the function
split_while
, go back to A.Enum module for more information.
Specs
split_while(t(val), (val -> as_boolean(term()))) :: {[val], [val]} when val: value()
Splits enumerable
in two at the position of the element for which fun
returns a falsy value
(false
or nil
) for the first time.
Mirrors Enum.split_while/2
with higher performance for Aja structures.