removing items from hash table contexts...
Posted: Fri Nov 28, 2008 6:18 pm
You can use contexts as hash tables and see tham as assoc lists (manual: "The contents of the namespace can be shown as an association list:") But it appears you can't use all assoc-list techniques on them:
although you can use others:
What's the difference?
Code: Select all
newLISP v.9.9.95 on OSX IPv4 UTF-8, execute 'newlisp -h' for more info.
> (define Doyle:Doyle)
nil
> (Doyle "baker" 221)
221
> (Doyle "street" 26)
26
>
> (Doyle)
(("baker" 221) ("street" 26))
>
> (pop-assoc "baker" (Doyle))
("baker" 221)
> (Doyle)
(("baker" 221) ("street" 26))
Code: Select all
> (find-all '(? 26) (Doyle) (println $0))
("street" 26)