def
Folks,
Below does not work as shown in subject text.
Can someone fix or offer a better solution?
Thx, Doug
======snip=============
/browse-dict % dictionary browse-dict -
{ %def
{ %forall
exch (key: ) print ==
dup type
dup /dicttype eq { %ifelse
(subdictionary: ) print
browse-dict % recursively browse dictionary
}{
(value: ) print ==
} ifelse
} forall
} bind def
/testDict1 <<
/a 1
/b [ 1 2 3 ]
/c <<
/key1 4
/key2 5
/key3 6
def
testDict1
browse-dict
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 496 |
Nodes: | 16 (2 / 14) |
Uptime: | 56:49:34 |
Calls: | 9,760 |
Calls today: | 1 |
Files: | 13,742 |
Messages: | 6,185,279 |