List.foldr/3

defmodule List do
  def foldr(list, acc, fun)
end

Folds (reduces) the given list from the right with a function. Requires an accumulator.