Skip to content

Arrays library

zumisha edited this page Dec 10, 2019 · 1 revision

Arrays are indexed from zero.

([1] * [2]).arrayCreate - Returns an array of [1] elements filled with values [2].

([1] * [2]).arrayGet - Get from the array [1] the element with the index [2].

([1] * [2] * [3]).arraySet - In array [1], set the element with index [2] to [3]. Returns the modified array [1].

([1]).arrayLen - Returns the length of array [1].

([1] * ... * [n]).arrayCat - Returns the union of arrays [1] - [n].

([1] * [2]).arrayFromFile - Try to fill the array [1] with values from the file along the path [2], if it did not, it will return undefined.

Clone this wiki locally