|
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,
ramiroencinas left
21:40
gabriel80546 joined
|
|||
| gabriel80546 | how to use 1..8 in a for loop? | 21:40 | |
| [Coke] | m: for 1..8 { $_.say } | 21:41 | |
| camelia | 1 2 3 4 5 6 7 8 |
||
| [Coke] | m: my $a; for 1..8 -> $c { $a+=$c }; say $a; | ||
| camelia | 36 | ||
| gabriel80546 | thank you very much | ||
| [Coke] | np | ||
| lakmatiol | 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 | |||
| > '12345671' ~~ /(. ** {2}).+$0/ | |||
| 「12345671」 | |||
| 0 => 「1」 | |||
| > '12345671' ~~ /(. ** 2).+$0/ | |||
| Nil | |||
| ``` | |||
| 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 | |||
| ```perl | |||
| > '12345671' ~~ /(. ** {2}).+$0/ | |||
| 「12345671」 | |||
| 0 => 「1」 | |||
| > '12345671' ~~ /(. ** 2).+$0/ | |||
| Nil | |||
| ``` | |||
| also, do capture groups in lookaheads and lookbehinds not work? | 23:30 | ||
|
23:33
melezhik joined
23:40
melezhik left
23:41
gabriel80546 left
|
|||