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. |
|||
02:11
guifa joined
02:40
teatwo joined
02:44
tea3po left
03:12
teatwo left
03:13
teatwo joined
03:46
habere-et-disper left
07:52
dakkar joined
08:16
habere-et-disper joined
|
|||
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 | |
11:00
dakkar left
|
|||
Anton Antonov | 😢 | 12:05 | |
12:16
dakkar joined
12:22
habere-et-disper left
12:27
dakkar left
14:21
tea3po joined
14:24
teatwo left
14:35
tea3po left
14:36
tea3po joined
14:39
tea3po left,
tea3po joined
14:40
tea3po left,
tea3po joined
16:41
dakkar joined
17:10
dakkar left
20:09
deadmarshal_ left
20:58
deadmarshal_ joined
21:36
deadmarshal_ left
22:32
deadmarshal_ joined
22:45
deoac left
22:50
lizmat left
23:10
lizmat joined
|