We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9753a10 commit ccefaa9Copy full SHA for ccefaa9
lib/elixir/lib/map.ex
@@ -98,9 +98,9 @@ defmodule Map do
98
99
Or any other key:
100
101
- iex> other_map = %{"three" => 3, "four" => 4}
102
- iex> %{other_map | "three" => "three"}
103
- %{"four" => 4, "three" => "three"}
+ iex> other_map = %{"three" => 3, "four" => 4, "five" => 5}
+ iex> %{other_map | "three" => "three", "four" => "four"}
+ %{"five" => 5, "four" => "four", "three" => "three"}
104
105
When a key that does not exist in the map is updated a `KeyError` exception will be raised:
106
0 commit comments