Created
September 17, 2019 23:30
-
-
Save trycf/c6615982d8a8d9f6baa9ee208cd2bc4e 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> | |
a = ["Some value","Another"]; | |
// Mutable way | |
a.append("Something"); | |
// Immutable'sh way | |
b = a.slice(1).append( "something else" ); | |
writeDump([ | |
a, | |
b | |
]); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment