Map.pop/3
defmodule Map do
def pop(map, key, default \\ nil)
end
Returns and removes the value associated with key in map.
If key is present in map with value value, {value, new_map} is returned where new_map is the result of removing key from map.
If key is not present in map, {default, map} is returned.