[00:35] *** melezhik joined [00:43] *** melezhik left [00:46] *** melezhik joined [01:03] *** melezhik left [03:15] *** superboot left [05:00] *** [Coke] left [06:39] *** [Coke] joined [20:27] *** ramiroencinas joined [20:29] *** ramiroencinas left [20:30] *** ramiroencinas joined [20:30] *** ramiroencinas left [21:40] *** gabriel80546 joined [21:40] how to use 1..8 in a for loop? [21:41] <[Coke]> m: for 1..8 { $_.say } [21:41] rakudo-moar 580b3ba79: OUTPUT: «1␤2␤3␤4␤5␤6␤7␤8␤» [21:41] <[Coke]> m: my $a; for 1..8 -> $c { $a+=$c }; say $a; [21:41] rakudo-moar 580b3ba79: OUTPUT: «36␤» [21:41] thank you very much [21:41] <[Coke]> np [23:09] I am slightly confused: how come it matches only when the two is in {}, I thought that was just a way to substitute raku expressions into the regex [23:09] ```perl [23:09] > '12345671' ~~ /(. ** {2}).+$0/ [23:09] 「12345671」 [23:09] 0 => 「1」 [23:09] > '12345671' ~~ /(. ** 2).+$0/ [23:09] Nil [23:09] ``` [23:09] I am slightly confused: how come it matches only when the 2 is in {}, I thought that was just a way to substitute raku expressions into the regex [23:09] ```perl [23:09] > '12345671' ~~ /(. ** {2}).+$0/ [23:09] 「12345671」 [23:09] 0 => 「1」 [23:09] > '12345671' ~~ /(. ** 2).+$0/ [23:09] Nil [23:09] ``` [23:30] also, do capture groups in lookaheads and lookbehinds not work? [23:33] *** melezhik joined [23:40] *** melezhik left [23:41] *** gabriel80546 left