factor/basis/linked-assocs/linked-assocs-docs.factor

23 lines
1.2 KiB
Factor
Raw Normal View History

2008-11-08 01:44:53 -05:00
IN: linked-assocs
2008-11-08 12:22:06 -05:00
USING: help.markup help.syntax assocs ;
2008-11-08 01:44:53 -05:00
2008-11-08 12:22:06 -05:00
HELP: linked-assoc
{ $class-description "The class of linked assocs. Linked assoc are implemented by combining an assoc with a dlist. The assoc is used for lookup and retrieval of single values, while the dlist is used for getting lists of keys/values, which will be in insertion order." } ;
HELP: <linked-assoc>
2008-11-11 21:25:33 -05:00
{ $values { "exemplar" "an exemplar assoc" } { "assoc" linked-assoc } }
{ $description "Creates an empty linked assoc backed by a new instance of the same type as the exemplar." } ;
2008-11-08 12:22:06 -05:00
HELP: <linked-hash>
{ $values { "assoc" linked-assoc } }
{ $description "Creates an empty linked assoc backed by a hashtable." } ;
2008-11-08 12:22:06 -05:00
ARTICLE: "linked-assocs" "Linked assocs"
"A " { $emphasis "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 " { $link >alist } "."
2008-11-08 12:22:06 -05:00
$nl
"Linked assocs are implemented in the " { $vocab-link "linked-assocs" } " vocabulary."
{ $subsection linked-assoc }
{ $subsection <linked-hash> }
{ $subsection <linked-assoc> } ;
2008-11-08 12:22:06 -05:00
ABOUT: "linked-assocs"