🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | Log inspection is getting closer to beta. If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 25 August 2021.
moon-child is there any method like 'rest' where e.g. <1 2 3>.rest ←→ <2 3>? 00:25
rakuUser <1 2 3>.tail(2) gives (2 3) idk if that is what you are looking for 00:28
moon-child more .tail(*-1). But that's not really better than [1..*-1] 00:29
rakuUser .tail(*-1) is cool 00:30
moon-child m: reduce sub ($x, $y) is assoc<right> { "($x $y)" }, <a b c>, 'd' 01:49
camelia ( no output )
moon-child m: say reduce sub ($x, $y) is assoc<right> { "($x $y)" }, <a b c>, 'd'
camelia (a b c d)
moon-child m: say reduce sub ($x, $y) is assoc<right> { "($x $y)" }, |<a b c>, 'd'
camelia (a (b (c d)))
moon-child is there a way to get the latter behaviour without flattening? 01:50
CIAvash moon-child: I don't think so, [reduce](docs.raku.org/routine/reduce) takes arguments as [Single argument rule slurpy](docs.raku.org/type/Signature#Singl...e_slurpy), and it makes sense. 05:45
Is there going to be a binary release for Rakudo 2021.08? cc Altai-man patrickb 05:49
neither moon-child: is `skip` fine 08:55
m: say <1 2 3>.skip
camelia (2 3)
moon-child ooh, yea, that's nice