Get map key for value

BlitzMax Forums/BlitzMax Programming/Get map key for value

How would I get a map key if I had the value?

Keep another map with the key/values reversed? (assuming of course that each key and value are unique)

Depending on your situation, it may make sense to have the key as a field within the object which is the value. It would make sense, for example, if the key was the name of the object. In other situations, it may not.