Created
November 26, 2022 12:23
-
-
Save trycf/cde0e8800f7c962b9c232a35e2749def to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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