Skip to content

Array (type)

Paul Lipkowski edited this page May 30, 2020 · 4 revisions

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)
Clone this wiki locally