Skip to content

Instantly share code, notes, and snippets.

@matheusca
Created September 30, 2013 15:56
Show Gist options
  • Save matheusca/6765941 to your computer and use it in GitHub Desktop.
Save matheusca/6765941 to your computer and use it in GitHub Desktop.
what am I wrong here?
configs = ["test", "other", "another", "some", "one", "two"]
Enum.split_while(configs, &(&1 == "another"))
{[], ["test", "other", "another", "some", "one", "two"]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment