# New Ticket Created by Zhenyi Zhou
# Please include the string: [perl #126227]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=126227 >
In S06-routines.pod there is an example of head and tail
sub head(*$head, *@tail) { return $head }
sub neck(*$head, *$neck, *@tail) { return $neck }
sub tail(*$head, *@tail) { return @tail }
With present rakudo below tail(1 .. Inf) returns [], not [2..Inf]
@fromtwo = tail(1..Inf); # @fromtwo contains a lazy [2..Inf]
I tried below, it can work.
@fromtwo = tail(|(1..5));
But this just hangs.
@fromtwo = tail(|(1..Inf));