Skip to content

Vector

Type Code: Positive integers (e.g., 1 for B8, 6 for Symbol). A Vector's type code is the positive representation of its corresponding Scalar type code.

A Vector is a series of objects of a certain type. Vectors can consist of any Scalar type.

Vector type codes are positive representations of their corresponding Scalar types. For example, a scalar Symbol has type code -6, while a Vector of Symbols has type code 6.

What is the usage?

Vectors are structures that enable efficient operations against datasets, which is why they are primarily utilized within the Table type. They provide fast, homogeneous data storage and operations.

[1 2 3 4 5]  ;; Vector of I64
['abc 'dca 'sed]  ;; Vector of Symbols
[2025.01.01 2025.01.02]  ;; Vector of Dates

Vectors are defined using square brackets [ and ].

See Vector usage in Table and Dictionary contexts