THIS IS AN EXPERIMENTAL FUNCTION. THE IMPLEMENTATION OR INTERFACE MAY CHANGE WITHOUT WARNING.
Invert creates an inverted hash from an existing hash. An inverted hash is one in which the keys and values are exchanged.
Arguments passed to the
invert, keys and value elements switch. Each element of the
values(x) is coerced to a key. The value becomes the associated key.
inverted.hash, a hash is created than inverted. It is defined as:
A hash object with:
keys as the unique elements of
values as the associated
1 2 3 4