Tile category - Array – Ylands
Jump to navigation
Jump to search
No edit summary |
Lou Montana (talk | contribs) m (Text replacement - "[[Ylands " to "[[Ylands:") |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=Instructions= | =Instructions= | ||
*[[Ylands Tile - Array get-set item|Get/Set item]] | *[[Ylands:Tile - Array get-set item|Get/Set item]] | ||
*[[Ylands Tile - Array random item|Get random item]] | *[[Ylands:Tile - Array random item|Get random item]] | ||
*[[Ylands Tile - Array length|Get length]] | *[[Ylands:Tile - Array length|Get length]] | ||
*[[Ylands Tile - Array index of|Index of]] | *[[Ylands:Tile - Array index of|Index of]] | ||
*[[Ylands Tile - Array pop|Pop]] | *[[Ylands:Tile - Array last index of|Last index of]] | ||
*[[Ylands Tile - Array push|Push]] | *[[Ylands:Tile - Array pop|Pop]] | ||
*[[Ylands Tile - Array shift|Shift]] | *[[Ylands:Tile - Array push|Push]] | ||
*[[Ylands Tile - Array unshift|Unshift]] | *[[Ylands:Tile - Array shift|Shift]] | ||
*[[Ylands Tile - Array slice|Slice]] | *[[Ylands:Tile - Array unshift|Unshift]] | ||
*[[Ylands Tile - Array splice|Splice]] | *[[Ylands:Tile - Array slice|Slice]] | ||
*[[Ylands:Tile - Array splice|Splice]] | |||
*[[Ylands:Tile - Array to string|To string]] | |||
*[[Ylands:Tile - Array reverse|Reverse]] | |||
*[[Ylands:Tile - Array includes|Includes]] | |||
*[[Ylands:Tile - Array fill|Fill]] | |||
*[[Ylands:Tile - Array clone|Clone]] | |||
*[[Ylands:Tile - Array concatenate|Concatenate]] | |||
*[[Ylands:Tile - Array order as numbers|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) | = Notes = | ||
*Index numbers always start from 0, e.g: Array of [[Ylands Tile - Array length|'''length''']] 3 has indexes 0, 1, 2 | *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. | ||
*Arrays are '''reference types''', meaning that most of '''instructions''' will '''modify''' original '''array''', even when assigned to variable. | |||
---- | ---- | ||
{{Ylands | {{Navbox/Ylands}} | ||
Latest revision as of 16:35, 16 November 2022
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.