Created
August 20, 2022 00:35
-
-
Save trycf/6be3067a5e270ca89fe0dd09fca6eada 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> | |
books = [ | |
"Pilgrim at Tinker Creek", | |
"Long Day's Journey into Night", | |
"We are in a Book!", | |
"A Confederacy of Dunces", | |
"Pride and Prejudice" | |
]; | |
writeDump(books); | |
collection = createObject('java','java.util.Collections'); | |
collection.Rotate(books,-1); | |
writeDump(books); | |
collection.Rotate(books,-1); | |
writeDump(books); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment