Created
May 29, 2011 10:18
-
-
Save liammclennan/997628 to your computer and use it in GitHub Desktop.
JavaScript Arrow Lambda Syntax
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
// from http://wiki.ecmascript.org/doku.php?id=strawman:arrow_function_syntax | |
// Empty arrow function is minimal-length | |
let empty = ->; | |
let square = (x) -> x * x; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment