Lists
List blocks provide functionality for creating and manipulating lists and collections of data.
Overview
List blocks enable you to work with ordered collections of data in your StarLogo Nova simulations. These blocks are essential for storing multiple values, managing collections of agents or data, and performing operations on groups of items.
Block Categories
List Creation
- List - Creates a new list or represents a list value
List Modification
- Insert Into List At Index - Inserts an item into a list at a specified index position
- Splice List Into List At Index - Inserts all items from one list into another list at a specified index position
- Remove Item Number From - Removes an item at a specific index position from a list
List Access
- Item Number In - Gets the item at a specific index position in a list
- Length Of - Gets the number of items in a list
List Searching
- Index Of In - Finds the index position of a specific item in a list
- Contains - Checks if a list contains a specific item