Fold (higher-order function)

Family of higher-order functions From Wikipedia, the free encyclopedia