Tile category - Array – Ylands
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Ylands editor navbox}}" to "{{Navbox/Ylands}}") |
Lou Montana (talk | contribs) m (Text replacement - " (\=+)([a-zA-Z0-9][^ ]+[a-zA-Z0-9])(\=+) " to " $1 $2 $3 ") |
||
Line 20: | Line 20: | ||
=Notes= | = Notes = | ||
*Values in all cells of one array does not have to be of same type (i.e string, vector, number). | *Values in all cells of one array does not have to be of same type (i.e string, vector, number). | ||
*'''Index''' numbers always '''start''' from '''0''', e.g: Array of [[Ylands Tile - Array length|'''length''']] 3 has indexes 0, 1, 2. | *'''Index''' numbers always '''start''' from '''0''', e.g: Array of [[Ylands Tile - Array length|'''length''']] 3 has indexes 0, 1, 2. |
Revision as of 15:40, 17 November 2021
Instructions
- Get/Set item
- Get random item
- Get length
- Index of
- Last index of
- Pop
- Push
- Shift
- Unshift
- Slice
- Splice
- To string
- Reverse
- Includes
- Fill
- Clone
- Concatenate
- Order by as numbers
Notes
- Values in all cells of one array does not have to be of same type (i.e string, vector, number).
- Index numbers always start from 0, e.g: Array of length 3 has indexes 0, 1, 2.
- Arrays are reference types, meaning that most of instructions will modify original array, even when assigned to variable.