hashtable
Factor handbook » The language » Collections » Hashtables

Next:hashtable? ( object -- ? )


Vocabulary
hashtables

Class description
The class of hashtables. See Hashtable syntax for syntax and Hashtables for general information.

Definition


Methods










M:: hashtable (gml-put) ( collection key elt -- )
elt key collection set-at ;







































M: hashtable deps "dependencies" of { } or ;



M: hashtable dev-deps "devDependencies" of { } or ;


















M: hashtable item>xml
[ struct-member ] { } assoc>map 1 nenum T{ xml-chunk
{ seq
V{
""
T{ tag { name ~name~ } { children ~vector~ } }
""
}
}
} interpolate-xml ;









M: hashtable pdf-value
[
"<<\n" % [ swap % " " % pdf-value % "\n" % ] assoc-each
">>" %
] "" make ;










































M: hashtable write-gml
"«Dictionary with " write assoc-size number>string write
" entries»" write ;