Cldr.Map.integerize_keys
You're seeing just the function
integerize_keys
, go back to Cldr.Map module for more information.
Transforms a map
's String.t
keys to Integer.t
keys.
Arguments
map
is anymap/0
options
is a keyword list of options passed todeep_map/3
The map key is converted to an integer
from
either an atom
or String.t
only when the
key is comprised of integer
digits.
Keys which cannot be converted to an integer
are returned unchanged.
Example
iex> Cldr.Map.integerize_keys %{a: %{"1" => "value"}}
%{a: %{1 => "value"}}