Cldr.Map.atomize_keys
You're seeing just the function
atomize_keys
, go back to Cldr.Map module for more information.
Transforms a map
's String.t
keys to atom()
keys.
Arguments
map
is anymap/0
options
is a keyword list of options passed todeep_map/3
. One additional option apples to this function directly::only_existing
which is set totrue
will only convert the binary value to an atom if the atom already exists. The default isfalse
.
Example
iex> Cldr.Map.atomize_keys %{"a" => %{"b" => %{1 => "c"}}}
%{a: %{b: %{1 => "c"}}}