Keyword.put_new/3

defmodule Keyword do
  def put_new(keywords, key, value)
end

Puts the given value under key unless the entry key already exists.

If keywords doesn’t contain key then it’s added using value as value.