M
marcus
This is a tough one to google hehe
Is there code available, or a coupla good hints, for a fast map that
takes a pair of keys to produce a value?
I have two keys that together map to a single (non-unique) value, but
not in a particularly logical manner. This is for a personal project
and doesn't have to look pretty, so I can hard-code loading the map.
Pulling the values out, though, I don't want a hundred or so nested if
statements.
Hmm, can I set up a map of maps? the first key returns a value, which
itself is a map of possible second keys? *shudder*
Is there code available, or a coupla good hints, for a fast map that
takes a pair of keys to produce a value?
I have two keys that together map to a single (non-unique) value, but
not in a particularly logical manner. This is for a personal project
and doesn't have to look pretty, so I can hard-code loading the map.
Pulling the values out, though, I don't want a hundred or so nested if
statements.
Hmm, can I set up a map of maps? the first key returns a value, which
itself is a map of possible second keys? *shudder*