Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/306890bf29ba7837073583d525d00775 to your computer and use it in GitHub Desktop.
Save trycf/306890bf29ba7837073583d525d00775 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
q = queryNew("col", "varchar", [["hi"]])
function mapper(row) { // not a closure
return {col=row.col.reverse()}
}
mapped = q.map(mapper)
writeDump(mapped)
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment