Created
February 18, 2010 03:37
-
-
Save kriszyp/307316 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// new syntax | |
function addOne(value){ | |
return (when <: value) + 1; | |
} | |
// as effectively sugar for: | |
function addOne(value){ | |
return when(value, function(value){ | |
return value + 1; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment