(rontolisp) docs
← Maps, sets and vectors

array-map

(array-map k v ...)

Answers a map built from the key/value pairs, exactly like hash-map: an equal hash table, copy-on-write, printing its entries in insertion order. Odd pair counts are refused.

As a value a rest lambda over the pairs; an odd rest count signals at run time.

Deviation: array-map and hash-map are identical here -- both build the same equal table, which keeps insertion order like the oracle's array-map, past eight entries too, where the oracle's array-map turns into a hash-map with an order of its own.