3

I recently ran into a situation where I needed to add reverse lookup functionalities in my mappings, and then I was surprised by the fact there there are simply no datatypes designed for this kind of bijection.

I was able to get around using two maps, one key-value, one value-key

but I am really really curious about why there are no bijective datatypes

Matthew Yang
  • 605
  • 1
  • 13
  • 23

0 Answers0