Skip to content

Instantly share code, notes, and snippets.

Created Apr 30, 2015
Embed
What would you like to do?
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