Last active
October 22, 2015 16:09
-
-
Save mzemel/5423b97e8d2ce70ea963 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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