Skip to content

Instantly share code, notes, and snippets.

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 fay-jai/96f5e8475d17b046e697aa69982d4789 to your computer and use it in GitHub Desktop.
Save fay-jai/96f5e8475d17b046e697aa69982d4789 to your computer and use it in GitHub Desktop.
# Anonymous function definitions in Elixir
sum = fn (a, b) -> a + b end
# Anonymous function definitions in JavaScript
var sum = (a, b) => a + b;
# Anonymous function definitions in Ruby
sum = -> (a, b) { a + b }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment