RosettaCodeData/Task/Catamorphism/Sidef/catamorphism.sidef

3 lines
64 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
say (1..10 -> reduce('+'));
say (1..10 -> reduce{|a,b| a + b});