hermann on Fri, 24 Nov 2023 09:40:36 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Lookup Table


On 2023-11-24 09:27, hermann@stamm-wilbrandt.de wrote:
I learned about "mapisdefined" by "???map", which lists all that has
to do with map.
"?mapisdefined" is short help, "??mapisdefined" is extended help.

And you can iterate over just the defined map elements:

? M=Map();
? mapput(~M,12345,1)
? mapput(~M,987654321,Set([1,2,3]))
? foreach(M,e,print(e[1]))
[12345, 1]
[987654321, [1, 2, 3]]
?