To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Official ZPE/YASS documentationmap_flip

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


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.


There are no comments on this page.

New comment
Code previewClose
Feedback 👍
Comments are sent via email to me.