Skip to content
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.

Display

Literal

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.

String form

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.

Operators

Vectors support addition, subtraction, and concatenation with other vectors; multiplication with a number; and the negate and index unary operators.

Clone this wiki locally