Re: "dumping" a map
- Posted by euphoric (admin) 3 months ago
- 994 views
cjnwl said...
At the moment I don't want to save anything to file, just display on screen in a readable format.
If that's the case, then you can do it easily with Euphoria.
For any key that points to a map, just use a string like "something-map."
When reading it back, if any key you encounter contains "-map," you know that the value is a map, and you can deal with it appropriately.
You could also use a key formatted like {key,type}, e.g., {"my_map",EU_MAP}, or somesuch. Not sure about that last one, but I'm just thinking out loud for now.