Linked assocs
Factor handbook » The language » Collections

Prev:Associative mapping operations
Next:Bidirectional assocs


A linked assoc is an assoc which combines an underlying assoc with a dlist to form a structure which has the insertion and retrieval characteristics of the underlying assoc (typically a hashtable), but with the ability to get the entries in insertion order by calling >alist.

Linked assocs are implemented in the linked-assocs vocabulary.
linked-assoc

<linked-hash> ( -- assoc )

<linked-assoc> ( exemplar -- assoc )