Map

replace/3

replace(map, key, value)

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 then it is returned unchanged.