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