MapSet.filter/2

defmodule MapSet do
  def filter(map_set, fun)
end

Filters set by returning only the elements from map_set for which invoking fun returns a truthy value.