Handbook
Glossary
<linked-assoc> ( exemplar -- assoc )
Factor handbook
»
The language
»
Collections
»
Linked assocs
Prev:
<linked-hash> ( -- assoc )
Vocabulary
linked-assocs
Inputs
exemplar
an exemplar assoc
Outputs
assoc
a
linked-assoc
Word description
Creates an empty linked assoc backed by a new instance of the same type as the exemplar.
Definition
USING:
assocs
dlists
kernel
;
IN:
linked-assocs
:
<linked-assoc>
( exemplar -- assoc )
0
swap
new-assoc
<dlist>
linked-assoc
boa
;