Tuesday, April 30, 2019

catamorphisms

Mark Seemann suggests here that: "A catamorphism is a general abstraction that enables you to handle multiple values, for example in order to reduce them to a single value." An example he gives in C# is:

new[] { 42, 1337, 2112, 90125, 5040, 7, 1984 }.Sum();

 
 

...giving us: 100647

No comments:

Post a Comment