MapSet.split_with/2

defmodule MapSet do
  def split_with(map_set, fun)
end

Splits the map_set into two MapSets according to the given function fun.