Eas (Easy Application Script) by Molaskes

Syntax Guide:17. Simple Vectors

\(\s*val1\s+val2\s+val3\s+...\s*\)
‌ Whenever you have a short array with natural number indices 0,1,2,..., you can simply write the values separated by space characters, the whole vector wrapped in parenthses:
fruit ("apple" "pear" "banana" "cherry")
‌ This does the same as using the regular way:
fruit?
fruit .. "apple"
fruit .. "pear"
fruit .. "banana"
fruit .. "cherry"
(The first line ensures an empty array.) Or even fully explicit:
fruit?
fruit[0] "apple"
fruit[1] "pear"
fruit[2] "banana"
fruit[3] "cherry"
‌ You can also pass vectors as the argument of a function, and nest them into matrices:
logical'and'table ( (0 0) (0 1) )
JS:
v=["one","two","three"]
Eas:
v ("one" "two" "three")
17. Simple Vectors
D Download Eas 4B
C Contact
Esc Search / Table of Contents