[perl #131342] cast error when using Whatever closure to index infinite lists

2017-05-24 Thread via RT
# New Ticket Created by Paweł Pabian # Please include the string: [perl #131342] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=131342 > I'm not sure what proper behavior should be in this useless code below :) Probably someth

[perl #131342] cast error when using Whatever closure to index infinite lists

2017-05-24 Thread Zoffix Znet via RT
On Mon, 22 May 2017 05:20:25 -0700, pawel.pab...@getresponse.com wrote: > I'm not sure what proper behavior should be in this useless code below > :) > Probably something like in "say @t[*]" - constructing items until OOM > - because Inf -1 = Inf. > > $ perl6 -e 'my @t := 1 .. *; say @t[*-1]' > Ca

[perl #131342] cast error when using Whatever closure to index infinite lists

2017-05-24 Thread Zoffix Znet via RT
On Mon, 22 May 2017 05:20:25 -0700, pawel.pab...@getresponse.com wrote: > I'm not sure what proper behavior should be in this useless code below > :) > Probably something like in "say @t[*]" - constructing items until OOM > - because Inf -1 = Inf. > > $ perl6 -e 'my @t := 1 .. *; say @t[*-1]' > Ca