-
Notifications
You must be signed in to change notification settings - Fork 1
Array (type)
Array is an entity type used in PapajScript. It stores multiple entities as a collection of them.
Array was introduced in early 2020 and it is released in a stable version 0.4.3 on May 15, 2020.
- All elements are indexed and the index of the first element is 0, the second one is 1 and so on.
[]
[ 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)
Versions of Papaj:
Pre-gen: Bereshit (v.0.0.1), Shemot (v.0.0.2)
Gen1 builds: Aleph (v.0.1.0), Bet (v.0.2.0), Gimel (v.0.2.1), Dalet (v.0.3.0)
Gen2 builds: Hey (v.0.3.1), Vav (v.0.4.0), Zain (v.0.4.1), Chet (v.0.4.2), Tet (v.0.4.3)
Gen3 builds and newer: Yod (v.0.5.0), Khaf (v.0.5.1), Lamed (v.0.5.2), Mem (v.0.5.3), Nun (v.0.5.4)
Development version: Leviathan
Packages of Papaj:
Vanilla, Array, Console, Date, Math, Number, String
Structures of Papaj:
Conditional, Entity, Loop, Variable
Array, Boolean, DateTime, Exception, LogicalExpression, Function, Number, Null, String
Home, PapajScript, Papaj (interpreter), Papaj REPL