Keyword.filter/2

defmodule Keyword do
  def filter(keywords, fun)
end

Returns only those elements for which fun returns a truthy value.