Cldr.Map.invert
You're seeing just the function
invert
, go back to Cldr.Map module for more information.
Invert a map
Requires that the map is a simple map of keys and a list of values or a single non-map value
Options
:duplicates
which determines how duplicate values are handled:nil
orfalse
which is the default and means only one value is kept.Map.new/1
is used meanng the selected value is non-deterministic.:keep
meaning duplicate values are returned in a list:shortest
means the shortest duplicate is kept. This operates on string or atom values.:longest
means the shortest duplicate is kept. This operates on string or atom values.