-
Notifications
You must be signed in to change notification settings - Fork 1
Vector
Unlocked edited this page Dec 11, 2018
·
1 revision
Vectors are an evaluated type in FAI which stores an ordered list. The contents of a vector are usually, though not limited to, numbers. They may not have fewer than one value.
The vector literal is in the form <a, b, c, ..., d>
where a, b, c, ..., d
are a comma-separated list of elements. There must be at least one element in a vector.
The string form is exactly the same as the literal, with the exception that all values will be evaluated and in their own string form.
Vectors support addition, subtraction, and concatenation with other vectors; multiplication with a number; and the negate and index unary operators.