map_flip (map a) ⇒ map
Flips the map, a, turning keys into values and values into keys.
Alternative function names: associative_array_flip
First available: Version 1.3.7.20
Notes
Version 1.4.2 dropped the alternative name assoc_flip
and added the map_flip
alternative name.
As of version 1.8.13, this is a reference function and will change the associative array directly.
Version 1.9.9 switched from associative_array_flip
to map_flip
.
Comments