Collections

Gosu collection and list classes rely on collection classes from the Java language. Gosu collections and lists provide significant built-in enhancements over the Java classes. By using the enhanced Gosu collection and list classes, you can loop through collection items to perform actions, extract item information, or sort items with single lines of code.

Gosu provides additional initializer syntax for both lists and maps similar to Gosu’s compact initializer syntax for arrays.