<p>A Closure is an inner function that has access to outer function’s variables. Closures were earlier supported only in cfscript , now we have extended the functionality to support Closures in ColdFusion Tags as well. So now one can easily invoke Closures in ColdFusion Tags. Some of the code-snippets for using this feature are as follows: <cfset myarray=[ {name="Thomas", age="22"}, {name="Zaza", age="36"}, {name="Novak", age="136"}, {name="Marin", age="361"}, {name="Rafa", age="3"}, {name="$bl0091@", age="-23"} ]> <!--- define closure function ---> <cfset closure=function (e1,e2){ return […]</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2018/07/closures-in-coldfusion-tags/">Closures in ColdFusion Tags</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Comments: