Wouldn't 1,3,5,7 be a more reasonable result? The next value, 9 is
greater than the end term, so it should stop?
On 10/16/14, Carl Mäsak via RT perl6-bugs-follo...@perl.org wrote:
bartolin ():
Actually I don't think S03 says that '1,3,5 ... 8' should act as
'1,3,5 ... *'
As I understand it
bartolin ():
Actually I don't think S03 says that '1,3,5 ... 8' should act as
'1,3,5 ... *'
As I understand it '1,3,5 ... 8' gives an infinite list with all even
numbers. '1,3,5 ... *' also gives an infinite list with all even
numbers -- but this one is lazy.
So there is a difference in
Actually I don't think S03 says that '1,3,5 ... 8' should act as '1,3,5 ... *'
As I understand it '1,3,5 ... 8' gives an infinite list with all even numbers.
'1,3,5 ... *' also gives an infinite list with all even numbers -- but this one
is lazy.
So there is a difference in behaviour: When
On Tue Sep 20 23:03:06 2011, woosley.xu wrote:
(13:50:48) woosley: rakudo: my @a = 1,3,5 ... *; say @a[^4]
(13:50:49) p6eval: rakudo f1c805: OUTPUT«1 3 5 7»
(13:46:40) woosley: perl6: my @odd = 1,3,5 ... 8; say @odd[^4]
(13:47:05) p6eval: rakudo f1c805, niecza v9-32-g380d891:
On Sun May 27 21:13:06 2012, coke wrote:
On Tue Sep 20 23:03:06 2011, woosley.xu wrote:
(13:50:48) woosley: rakudo: my @a = 1,3,5 ... *; say @a[^4]
(13:50:49) p6eval: rakudo f1c805: OUTPUT«1 3 5 7»
(13:46:40) woosley: perl6: my @odd = 1,3,5 ... 8; say @odd[^4]
(13:47:05) p6eval:
# New Ticket Created by woosley. xu.
# Please include the string: [perl #99658]
# in the subject line of all future correspondence about this issue.
# URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=99658
(13:50:48) woosley: rakudo: my @a = 1,3,5 ... *; say @a[^4]
(13:50:49) p6eval: