RosettaCodeData/Task/Catamorphism/00DESCRIPTION

12 lines
455 B
Text
Raw Permalink Normal View History

2015-02-20 09:02:09 -05:00
''Reduce'' is a function or method that is used to take the values in an array or a list and apply a function to successive members of the list to produce (or reduce them to), a single value.
2016-12-05 22:15:40 +01:00
;Task:
2015-02-20 09:02:09 -05:00
Show how ''reduce'' (or ''foldl'' or ''foldr'' etc), work (or would be implemented) in your language.
2016-12-05 22:15:40 +01:00
2017-09-23 10:01:46 +02:00
;See also:
* Wikipedia article:   [[wp:Fold (higher-order function)|Fold]]
* Wikipedia article:   [[wp:Catamorphism|Catamorphism]]
2016-12-05 22:15:40 +01:00
<br><br>