Map.replace!/3

defmodule Map do
  def replace!(map, key, value)
end

Alters the value stored under key to value, but only if the entry key already exists in map.

If key is not present in map, a KeyError exception is raised.