Re: Saving a Map with a Map Inside
- Posted by DerekParnell (admin) Sep 11, 2011
- 1113 views
euphoric said...
But I'm sure at some point, somebody is going to want to store maps inside of maps out of necessity, and then the question will come up again. So why not solve it now?
Solving it NOW takes time so I was wondering how urgent was your specific need.
Another approach would be to store the 'keys,values' pairs of the VARS map in mainMap instead of the VARS map itself.
map:put(mainMap, "VARS", map:pairs(varMap))
And you can then get them back again ...
varMap = new_from_pairs( map:get(mainMap, "VARS") )