Skip to content

Instantly share code, notes, and snippets.

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 trycf/cde0e8800f7c962b9c232a35e2749def to your computer and use it in GitHub Desktop.
Save trycf/cde0e8800f7c962b9c232a35e2749def to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
function f(z, y, x) {
writeDump(arguments)
}
a = [1,2,3]
f(...a)
writeOutput("<hr>")
st = {x = 1, y = 2, z = 3}
f(...st)
writeOutput("<hr>")
function g(z, y, x) {
arrayEach(arguments, (v) => {
writeDump([v, v.toString(), v.getValue()])
})
}
g(...st)
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment