Skip to content

Instantly share code, notes, and snippets.

@alco
Created April 2, 2014 18:20
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 alco/9939998 to your computer and use it in GitHub Desktop.
Save alco/9939998 to your computer and use it in GitHub Desktop.
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