DEV Community

Discussion on: 7 ways to write logic with Elixir's pattern matching

Collapse
 
joshnuss profile image
Joshua Nussbaum

Nice article!
Another useful pattern match is multiple first elements of an array

def first([a, b, c | _]) do
  # ...
end