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.
habere-et-disper What is the expectation of the upto operator and *. For example: 08:06
m: my @foo = (1,2,3); say @foo[ 0 ..^ * ]
camelia (1 2 3)
habere-et-disper I was expecting it to exlude the end point 3.
moritz m: m: my @foo = (1,2,3); say @foo[ 0 .. * ] 08:13
camelia (1 2 3)
Nahita 0 ..^ * is actually an infinite range starting at 0, like 0 .. * would be; excluding the infinity doesn't harm its infiniteness
and therefore we get from start (0 here) until the very end 08:14
docs.raku.org/language/list.html#Range_as_slice explains better than me
habere-et-disper Thanks ! 08:15
Nahita np 08:16
Nemokosch I can recall this topic on Github; maybe there is a trap entry for it or something. 08:47
github.com/Raku/problem-solving/issues/50 08:58
Mediocre first day here hello everyone 22:47