Eas (Easy Application Script) by Molaskes

Syntax Guide:18. Keyed and Mixed Vectors

\(\s*key1\s*:\s*val1\s+key\s*:\s*2val2\s+...\s*\)
‌ You can also specify a key for vector items. It must be either a string or a number or a term in parentheses, all of which will be typecast to string. (12:"twelve" "hi":"hello" (name):age) Items without a key will get the next free integer key, counting from 0 upwards. (1:"a" "b" 2:"c") = (1:"a" 0:"b" 2:"c") If the same key appears again, the earlier value will be overwritten. (1:"a" 2:"b" 1:"c") = (1:"c" 2:"b")
JS:
v={1:"uno","two":"due",three:"tre"}
Eas:
v (1:"uno" "two":"due" "three":"tre")
18. Keyed and Mixed Vectors
D Download Eas 4B
C Contact
Esc Search / Table of Contents