Catamorphism: Difference between revisions

From Rosetta Code
Content added Content deleted
(init)
 
No edit summary
Line 1: Line 1:
{{draft task}}
{{draft task}}


Reduce is a function or method that is used to take the values in an array or a list and reduce them to one value depending on a specified function.
Reduce is a function or method that is used to take the values in an array or a list and reduce them to one value depending on a specified function. It is also called "fold".

Revision as of 13:32, 18 September 2012

Catamorphism is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Reduce is a function or method that is used to take the values in an array or a list and reduce them to one value depending on a specified function. It is also called "fold".