Cldr.Map.atomize_values

You're seeing just the function atomize_values, go back to Cldr.Map module for more information.
Link to this function

atomize_values(map, options \\ [only_existing: false])

View Source

Transforms a map's String.t values to atom() values.

Arguments

  • map is any map/0

  • options is a keyword list of options passed to deep_map/3. One additional option apples to this function directly:

    • :only_existing which is set to true will only convert the binary value to an atom if the atom already exists. The default is false.

Examples

iex> Cldr.Map.atomize_values %{"a" => %{"b" => %{1 => "c"}}}
%{"a" => %{"b" => %{1 => :c}}}