Array (type) - MrKaszeba19/PapajLang GitHub Wiki
Array is an entity type used in PapajScript. It stores multiple entities as a collection of them.
History
Array was introduced in early 2020 and it is released in a stable version 0.4.3 on May 15, 2020.
Features
- All elements are indexed and the index of the first element is 0, the second one is 1 and so on.
Examples
[]
[ 2 1 3 7 ]
[ 10 times rand ]
which produces an array with 10 random real numbers of range [0, 1).[ 20 times Math.randomNormStd ]
which produces an array with 20 numbers randomly generated using standard normal distribution (see Math package)