A bidirectional map consists of a two way map, that can be accessed
both by the keys, or by the values. Note that in order to correctly
access the elements, the types given should be comparable by identity
(=== comparison).
We say that a bidirectional map has keys and values, associated.
The order of association is important, so for a BidirectionalMap<string, number>
you can accedd by value passing numbers, but not strings, and you can access
by key passing string, not numbers.
A bidirectional map consists of a two way map, that can be accessed both by the keys, or by the values. Note that in order to correctly access the elements, the types given should be comparable by identity (=== comparison). We say that a bidirectional map has keys and values, associated. The order of association is important, so for a BidirectionalMap<string, number> you can accedd by value passing numbers, but not strings, and you can access by key passing string, not numbers.