Add a key and value to a map Mar 21, 2016 Add a key and value to a map. Map.put(%{a: 1}, :b, 2) %{a: 1, b: 2}