Keyword.new/2

defmodule Keyword do
  def new(enumerable, fun)
end

Creates a keyword list from an enumerable via the transformation function fun. Duplicated entries are removed, the latest one prevails.