Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infix:<Z^..> doesn't produce sub-parcels in Rakudo #2773

Closed
p6rt opened this issue Jun 27, 2012 · 4 comments
Closed

infix:<Z^..> doesn't produce sub-parcels in Rakudo #2773

p6rt opened this issue Jun 27, 2012 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jun 27, 2012

Migrated from rt.perl.org#113870 (status was 'resolved')

Searchable as RT113870$

@p6rt
Copy link
Author

p6rt commented Jun 27, 2012

From @masak

<TimToady> r​: constant @​t = [\+] 1..5; say (0,@​t Z^.. @​t).perl;
<p6eval> rakudo 88a9d6​: OUTPUT«(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15).list␤»
<TimToady> that one still doesn't produce sub-parcels
<TimToady> pmichaud​: ^^
<jnthn> r​: my @​t = [\+] 1..5; say (0,@​t Z^.. @​t).perl;
<p6eval> rakudo 88a9d6​: OUTPUT«(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15).list␤»
<jnthn> OK, and constant ain't to blame this time :)
* masak submits rakudobug
<pmichaud> TimToady​: okay, looking.
<TimToady> probably Range behaving insufficiently like a Parcel somewhere
<pmichaud> r​: my @​t = [\+] 1..5; say (0,@​t Z.. @​t).perl
<p6eval> rakudo 88a9d6​: OUTPUT«(0, 1, 1, 2, 3, 3, 4, 5, 6, 6, 7, 8, 9,
10, 10, 11, 12, 13, 14, 15).list␤»
<pmichaud> okay, I can look at it.

@p6rt
Copy link
Author

p6rt commented Sep 14, 2015

From @niner

Seems to give a correct result now​:

perl6 -e 'constant @​t = [\+] (1..5); say ((0,|@​t) Z^.. @​t).perl;'
(0^..1, 1^..3, 3^..6, 6^..10, 10^..15).Seq

@p6rt
Copy link
Author

p6rt commented Sep 14, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 14, 2015

@niner - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant