Elixier ändern Kartenschlüsselname
iex> details = %{name: "john", address1: "heaven", mobile1: "999999999"}
# %{address1: "heaven", mobile1: "999999999", name: "john"}
iex> Map.new(details, fn
{:address1, address} -> {:address, address}
{:mobile1, mobile} -> {:phone, mobile}
x -> x
end)
# %{address: "heaven", name: "john", phone: "999999999"}
patrick204nqh