Name | <MapTag.invert> |
Returns | MapTag |
Description | Returns an inverted copy of the map. That is, keys become values and values become keys.
All values in the result will be ElementTags. Note that the size of the result is not guaranteed to be the same as the input (as duplicate keys are not allowed, but duplicate values are). In the case of duplicate new-keys, the last instance of the new-key will be preserved. |
Example |
|
Example |
|
Source | https://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/MapTag.java#L759 |