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 classify is great, and iirc it also doesn't copy 12:00
habere-et-disper Hi all o/ 12:18
I'm trying to set a default value for a grammar. I thought this reasonable:
m: my grammar foo is default(False) { }
camelia ===SORRY!=== Error while compiling <tmp>
'foo' cannot inherit from 'default' because it is unknown.
at <tmp>:1
habere-et-disper But I'm not sure what to make of that error message!
Nemokosch foo is not a value but a class type 12:44
Anton Antonov What is the easiest / shortest code to get all intermediate results of a reduction operation? (I.e. when applying `reduce`.) Of course, I can just write a for loop, but maybe there is something neater. 15:56
Nemokosch using `produce` 15:57
m: [\+] (1, 2, 3, 4, 5) andthen .say
that was `[\+]` by the way, just discord eats it in display 15:58
Anton Antonov <@297037173541175296> Ah, yes -- thanks! I remember now seeing / reading this... 16:06