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/c6615982d8a8d9f6baa9ee208cd2bc4e to your computer and use it in GitHub Desktop.
Save trycf/c6615982d8a8d9f6baa9ee208cd2bc4e to your computer and use it in GitHub Desktop.
TryCF Gist
<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