Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TryCF Gist
<cfscript>
string = "abcde"
arrayOfCharsFromSplit = string.split("")
arrayOfCharsAfterAppend = arrayNew(1).append(arrayOfCharsFromSplit, true)
nextChars = arrayOfCharsAfterAppend.map((char) => chr(asc(char) + 1))
writeDump([
values = [
arrayOfCharsFromSplit = arrayOfCharsFromSplit,
arrayOfCharsAfterAppend = arrayOfCharsAfterAppend,
nextChars = nextChars
], types = [
arrayOfCharsFromSplit = arrayOfCharsFromSplit.getClass().getName(),
arrayOfCharsAfterAppend = arrayOfCharsAfterAppend.getClass().getName(),
nextChars = nextChars.getClass().getName()
]
])
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment