Skip to content

Instantly share code, notes, and snippets.

@mzemel
Last active October 22, 2015 16:09
Show Gist options
  • Save mzemel/5423b97e8d2ce70ea963 to your computer and use it in GitHub Desktop.
Save mzemel/5423b97e8d2ce70ea963 to your computer and use it in GitHub Desktop.
### One place you might see pattern matching
def handle_result(:success, result) do
IO.puts "Success: #{result}"
end
def handle_result(:failure, _) do
IO.puts "Failure!"
end
handle_result(:failure, "pero lo hizo en la lengua contra")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment