Skip to content

Instantly share code, notes, and snippets.

@Tombarr
Created January 19, 2019 23:12
Show Gist options
  • Save Tombarr/08dac4c5a6441e0253a567cd3452002b to your computer and use it in GitHub Desktop.
Save Tombarr/08dac4c5a6441e0253a567cd3452002b to your computer and use it in GitHub Desktop.
Case statement with arrays in Elixir
case [1, 2, 3] do
[1, 2, 4] -> false
[a, 2, 3] -> true
_ -> true # default condition
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment