Enum¶
Type Code: 20. Internal Name: Enum
An Enum (enumeration) is a special type that maps a Vector of Symbols to a more compact representation. It consists of a symbol key and a vector of indices that reference the original symbol vector.
Enums are useful for saving space when storing repeated symbols, especially in Table columns with many duplicate symbol values.
Enums are created using the enum function, which takes a symbol key and a vector of symbols: