Higher-order functions: Difference between revisions
Content added Content deleted
Line 218: | Line 218: | ||
-- Applies a function against an accumulator and |
-- Applies a function against an accumulator and |
||
-- each list |
-- each list element (from left-to-right) to reduce it |
||
-- to a single return value |
-- to a single return value |
||
-- Arguments: list, function, initial value of accumulator |
-- Arguments: list, function, initial value of accumulator |