Get Started
Collection

Collection

A collection is a store that holds several values, which actions then add to, read, and remove. Collection Type selects a List, which keeps values in order, or a Map, which looks them up by key. Set the Value Type the collection holds; a map also takes a Key Type. Key and value types are the same eight types as variables.

With Size Limit on, nothing can be stored beyond Maximum Size. Turning on Circular Buffer alongside a size limit on a list drops the oldest value to make room for a new one, which is how a list is used as a queue or a stack.

Caution Key and value types are fixed when the collection is created. Decide the shape of the data before creating it.