# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #63014] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63014 >
<masak> I just got bitten by a logical bug of sorts: @array[0..0] results in an element, not in a list. <masak> what would be the best way to make sure that it is a list I get? @array[0..0].list? <moritz_> aye <masak> seems to work. <masak> I expect to be bitten by this one in the future, too. :/ <masak> especially since the endpoints of the range need not be literals. <TimToady> I think use of a range operator should imply list <TimToady> much like @array[0,] should <masak> one should think so, yes... <masak> what do the synopses think? <TimToady> does @array[0..0,] work? <masak> moritz_: the problem, as I hinted, is that my zeroes aren't literals. <TimToady> or @array[0..0,()] ? <masak> TimToady: I'll try, hold on. <masak> TimToady: no and no, respectively :/ <TimToady> whatever interpolates a range into a capture should make sure it's listy in list context <TimToady> but I'm not sure rakudo really believes in Captures yes <masak> seems not. * masak hesitates on the rakudobug submit button * moritz_ shouts "go, go, go!" * mberends too * masak goes, goes, goes