-
Retrieving values from a dictionary using namespacing
Hi all,
I would like to understand the following behaviour:
If the dictionary values are all atoms of the same type, treating the dictionary as a namespace will throw an error when retrieving a value. Otherwise it seems to work ok.
q)dict:`FAWF`faw`erses`gdgr`gr!til 5 q)dict FAWF | 0 faw | 1 erses| 2 gdgr | 3 gr | 4 q)dict.gr 'gr [0] dict.gr ^ q)dict:`FAWF`faw`erses`gdgr`gr!(2;44i;54.7;`fs;"ff") q)dict FAWF | 2 faw | 44i erses| 54.7 gdgr | `fs gr | "ff" q)dict.gr "ff" q)dict:`FAWF`faw`erses`gdgr`gr!enlist each til 5 q)dict FAWF | 0 faw | 1 erses| 2 gdgr | 3 gr | 4 q)dict.gr ,4
Thanks,
Eoghan
Log in to reply.