Created
November 14, 2018 16:56
-
-
Save fay-jai/96f5e8475d17b046e697aa69982d4789 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
# 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