Skip to content

Instantly share code, notes, and snippets.

Created August 26, 2011 17:09
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 anonymous/1173877 to your computer and use it in GitHub Desktop.
Save anonymous/1173877 to your computer and use it in GitHub Desktop.
Function argument shadowing
-module(test).
-compile(export_all).
inc(X) ->
io:format("X value '~p' has been shadowed.", [X]),
fun (X) ->
X + 1
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment