alist
An alist, short for association list, is a simple data structure used to store key-value pairs as a list of pairs. Each element in the list is a pair, with the key typically stored in the car and the value in the cdr. In Lisp and related languages, alists are a common way to represent small maps or configuration data. Keys are usually unique within a given alist, though some codebases allow shadowing by placing newer bindings at the front.
Access and mutation: To retrieve a value, a language-specific function such as assoc is used to search
Variants and relation to other structures: A sorted alist organizes pairs by key and can support faster
Use and limitations: Alists are convenient for small, simple mappings or for code that favors immutability