RosettaCodeData/Task/Catamorphism/Sidef/catamorphism.sidef

3 lines
64 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
say (1..10 -> reduce('+'));
say (1..10 -> reduce{|a,b| a + b});