Sorry, I was thinking about a map, but somehow my brain misconnected.
Still, a map can only have one key.
In my current case, I'd like something like this:
Type Walls(StartCoord as string, EndCoord as string, Status as Boolean)
Then, I want to add a bunch of those to a map with both StartCoord and EndCoord as keys, so I'm able to quickly get all walls that has a certain coord as either end point.
It would also be very useful in various database shells where you convert a data set to objects.
Another typical use case is bi-directional translation/mapping tables.
Sure, I could loop through all objects in the map, but that's slow and makes for less neat code. Sure, I could have two maps, where one only holds object references to the other, but that makes for even less neat code.
I'm not saying it can't be done, just that it would be much neater if the tool handled this fairly common case.