Take the 2-minute tour ×  I'd like to link 2 columns of unique
identifiers and be able to get a first column value by a second
column value as well as a second column value by a first column
value. Something like  Map(1 <-> "one", 2 <-> "two", 3 <->
"three")  Is there such a facility in Scala?  Actually I need
even more: 3 columns to select any in a triplet by another in a
triplet (individual values will never be met more than once in
the entire map). But a 2-column bidirectional map can help too.
share|improve this question Did you mean to have both "two" and
"three" associated with 2? Because that's what you have here,
and I'm not sure you wanted that, given that that breaks any
point of having a bidirectional map. –  Ptharien's Flame Mar 24
'12 at 10:17 No. I've corrected the example. –  Ivan Mar 24 '12
at 10:33 @Ptharien'sFlame that's called multimap –  om-nom-nom
Mar 24 '12 at 10:42 MultiMap is for map K -> Seq –  andy
petrella Mar 24 '12 at 11:11 @andypetrella have both "two" and
"three" associated wit