01:06
discord-raku-bot left
01:07
discord-raku-bot joined
|
|||
shift-eleven | is there an equivalent to ruby's `5.times` where is does something based on an int count? | 12:04 | |
lizmat | for ^5 | 12:05 | |
say "foo" for ^5 | |||
m: say "foo" for ^5 | |||
camelia | foo foo foo foo foo |
||
shift-eleven | ah, keep forgetting that way | 12:06 | |
thanks | |||
12:11
fgmachado joined
12:12
fgmachado left
|
|||
Nemokosch | this 5.times stuff came up a couple of days ago | 12:23 | |
shift-eleven | I remember this, but couldnt find it, ill try and search | 12:25 | |
right same solution | 12:27 | ||
I guess the next thing would be is what is `^5`, is it a range? | |||
lakmatiol | yup | 12:31 | |
it's a shorthand for `0..^5` | |||
raku ranges are inclusive by default, you can use `^` to exclude that bounhd | 12:32 | ||
raku ranges are inclusive by default, you can use `^` to exclude that bound | |||
shift-eleven | ah gotcha | 12:33 | |
gfldex | m: say &prefix:<^>.WHAT; | 12:47 | |
m: say &prefix:<^>.signature; | 12:48 | ||
13:15
getimiskon joined
13:52
discord-raku-bot left,
discord-raku-bot joined
22:28
getimiskon left
|