Array

From Resonite Wiki
Revision as of 23:25, 3 June 2024 by AmasterAmaster (talk | contribs) (Created a page about arrays.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

An Array is a type of data structure that contains an arbitrary list of items or can be empty. In the context of Resonite, it is a type of collection that would represent a value or a reference within the Data Model, and each item inside the array is the same type within (i.e. An int array of 5 items, each item is also an int that is stored within it).

Currently arrays are not supported in the data model, and when attempting to use arrays inside resonite in some way, it will crash your resonite client!

Arrays can themselves hold arrays, this is known as a 2D array, but an array like this is still bound to the rules of what a regular array would be (i.e. int array[][] has to hold an item that is an int array[]). This can allow you to build even larger arrays and collections, but be careful not to get confused while building complexities like this.

See Also

  • The complete computer science term of arrays on Wikipedia.