Skip to content

Dictionary

Type Code: 99. Internal Name: Dict

Dictionaries are objects that hold information about keys and their corresponding values.

Structure

Keys are represented as either a Vector or a List of any scalar type.

Values are either a Vector or a List of any type.

 (dict [a b c] (list [1 2 3] [4 5 6] ['b 'c 'a]))
{
  a: [1 2 3]
  b: [4 5 6]
  c: [b c a]
}

Dictionary and Table types are similar, but the main difference is in keys: a Table holds keys as a Vector of Symbols, while a Dictionary can hold keys as any Scalar value.