replace the old elements contained in the map with new ones.
Iterable<E> replaces(Map<E, E> replacements) { return map((item) => replacements[item] ?? item); }