R has a set of built in higher order functions: Map, Reduce, Filter, Find, Position, Negate.
Map applies a given function to a list of values:
words <- list("this", "is", "an", "example")
Map(toupper, words)
Reduce successively applies a binary functi...