Cldr.Map.atomize_keys

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

atomize_keys(map, options \\ [])

View Source

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

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.

Example

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