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.
03:41 explorer left 05:19 Chanakan left, Chanakan joined 07:48 dakkar joined
ab5tract m: my @a = [1,2], [3,4], [5,6]; sub s($a, $b) { dd [:run(++$), :$a, :$b] }; for @a -> @ap { s(|@ap) } 10:17
camelia [:run(1), :a(1), :b(2)]
[:run(2), :a(3), :b(4)]
[:run(3), :a(5), :b(6)]
ab5tract thowe: ^^
It's a bit more convulated when mixing positional and named argments, however: 10:22
m: my @a = [1,2,:c<a>], [3,4, :c<b>], [5,6, :c<c>]; sub s($a, $b, :$c) { dd [:run(++$), :$a, :$b, :$c] }; for @a -> @ap { s(|@ap[0,1], |%(@ap[2])) }
camelia [:run(1), :a(1), :b(2), :c("a")]
[:run(2), :a(3), :b(4), :c("b")]
[:run(3), :a(5), :b(6), :c("c")]
14:40 None joined 16:02 sivoais joined 16:36 dakkar left 17:29 swaggboi left 17:31 swaggboi joined 17:40 sjn left 18:14 sjn joined 18:35 None left
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2024/07/22/2024-...e-toolbox/ 19:30
22:57 hudo left 22:58 hudo joined