Map.new/2

defmodule Map do
  def new(enumerable, fun)
end

Creates a map from an enumerable via the given transformation function fun.

Duplicated keys are removed; the latest one prevails.