elixir will map.put return a struct code example Example: map merge elixir iex> Map.merge(%{a: 1, b: 2}, %{a: 3, d: 4}) %{a: 3, b: 2, d: 4}