Created
April 2, 2014 18:20
-
-
Save alco/9939998 to your computer and use it in GitHub Desktop.
This file contains 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
defmodule N do | |
x = 1 | |
def foo(x), do: -x | |
y = x + 1 | |
IO.puts "The correct answer is #{y}" | |
def y(y), do: y*2 | |
IO.puts "It's still #{y}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment