3 ms·
In Raku: sum(1..10) (1..10).sum or just sum 1..10
by PinkMilkshake 5y ago
In Raku:
sum(1..10)
(1..10).sum
or just
sum 1..10
- lizmat 5y agoOr more generically: [+] 1..10 You can use any infix op (core or custom) to do a reduction: [*] 1..10 # 3628800 basically faculty