This channel is intended for people just starting with the Raku Programming Language (raku.org). Logs are available at irclogs.raku.org/raku-beginner/live.html
Set by lizmat on 8 June 2022.
Nemokosch docs.raku.org/language/operators#methodop_.%3F 08:16
librasteve Poohmaan: it looks that the count-and-sum-evens example here is close to what you are asking docs.raku.org/type/List#routine_reduce 09:48
which can be simplified if you only want the acc part and not the count 09:58
m: sub fun(\acc, \x) { acc+x }; say (1..10).reduce: &fun;
Raku eval 55
librasteve m: say (1..10).reduce: -> \acc, \x {acc+x}; 10:00
Raku eval 55
librasteve m: say (1..10).reduce: {$^acc + $^x};
Raku eval 55
lizmat PSA: there will not be a Rakudo Weekly today 11:00
Anton Antonov 😢 12:05