Skip to content

Instantly share code, notes, and snippets.

Created April 30, 2015 18:32
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/7b7fb26978628a6ba7e3 to your computer and use it in GitHub Desktop.
Save anonymous/7b7fb26978628a6ba7e3 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
echo("<h1>Running Lucee " & server.lucee.version & "</h1>");
//example: credit Adam Cameron http://blog.adamcameron.me/2015/04/lucee-5-beta-lambda-syntax.html
h = (x,y) -> x*y
echo("Using function expression with 'lambda' syntax: #h(11,13)#<br>")
j = (x,y) -> {
return x * y
}
echo("Using 'lambda' syntax with block: #j(17,19)#<br>")
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment