Arc provides support for hash tables. An entry in the table is
accessed by treating the table as a function on the key. For example, to look
up key
in table tab
: (tab key)
. If the key is not present,
nil
is returned.
The =
operator can be used to assign values to a table:
(= (tab key) 'value)
.
See also template operations, which provide a more complex abstraction on top of tables.