Skip to content

Instantly share code, notes, and snippets.

@viniciussbs
Created September 4, 2015 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viniciussbs/b67ff0d3e8b4a84d10ac to your computer and use it in GitHub Desktop.
Save viniciussbs/b67ff0d3e8b4a84d10ac to your computer and use it in GitHub Desktop.
Simple Elixir pattern matching test.
x = 42
# 42
x = x + 1
# 43
^x = x + 1
# ** (MatchError) no match of right hand side value: 44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment