Tile category - Array – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " (\=+)([a-zA-Z0-9][^ ]+[a-zA-Z0-9])(\=+) " to " $1 $2 $3 ")
m (Text replacement - "[[Ylands " to "[[Ylands:")
 
(One intermediate revision by the same user 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 last index of|Last index of]]
*[[Ylands:Tile - Array last index of|Last index of]]
*[[Ylands Tile - Array pop|Pop]]
*[[Ylands:Tile - Array pop|Pop]]
*[[Ylands Tile - Array push|Push]]
*[[Ylands:Tile - Array push|Push]]
*[[Ylands Tile - Array shift|Shift]]
*[[Ylands:Tile - Array shift|Shift]]
*[[Ylands Tile - Array unshift|Unshift]]
*[[Ylands:Tile - Array unshift|Unshift]]
*[[Ylands Tile - Array slice|Slice]]
*[[Ylands:Tile - Array slice|Slice]]
*[[Ylands Tile - Array splice|Splice]]
*[[Ylands:Tile - Array splice|Splice]]
*[[Ylands Tile - Array to string|To string]]
*[[Ylands:Tile - Array to string|To string]]
*[[Ylands Tile - Array reverse|Reverse]]
*[[Ylands:Tile - Array reverse|Reverse]]
*[[Ylands Tile - Array includes|Includes]]
*[[Ylands:Tile - Array includes|Includes]]
*[[Ylands Tile - Array fill|Fill]]
*[[Ylands:Tile - Array fill|Fill]]
*[[Ylands Tile - Array clone|Clone]]
*[[Ylands:Tile - Array clone|Clone]]
*[[Ylands Tile - Array concatenate|Concatenate]]
*[[Ylands:Tile - Array concatenate|Concatenate]]
*[[Ylands Tile - Array order as numbers|Order by as numbers]]
*[[Ylands:Tile - Array order as numbers|Order by as numbers]]




= 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.
*Arrays are '''reference types''', meaning that most of '''instructions''' will '''modify''' original '''array''', even when assigned to variable.
*Arrays are '''reference types''', meaning that most of '''instructions''' will '''modify''' original '''array''', even when assigned to variable.



Latest revision as of 16:35, 16 November 2022

Instructions


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.