For the records: Now (post GLR) this gives List() -- which looks correct: < bartolin> m: my $a = [ "this", "is", "so", "gross" ]; my $b = [ "that", "is", "so", "funny" ]; my $c = $b[2..3]; $a[3] = $c; say $a[3].WHAT # RT #76698 <+camelia> rakudo-moar 00be1e: OUTPUT«(Parcel)» < GLRelia> rakudo-moar 467b79: OUTPUT«(List)»
But anyway, one way of setting $a to ["this", "is", "so", ["so", "funny"]] would have been $ perl6 -e 'my $a = [ "this", "is", "so", "gross" ]; my $b = [ "that", "is", "so", "funny" ]; my $c = $b[2..3].Array; $a[3] = $c ; say $a.perl' ["this", "is", "so", ["so", "funny"]] This also worked pre GLR -- the method Array was added back in 2011 with commit 0516515875. I'm closing this ticket as 'resolved'. (No test added, since there doesn't seem to be a bug involved.) Finally, some further notes from IRC: < ShimmerFairy> There was a Seq() way back when? Weeeeird O_o < FROGGS> m: my $a = [ "this", "is", "so", "gross" ]; my $b = [ "that", "is", "so", "funny" ]; my $c = $b[2..3]; say $c.WHAT; $a[3] = $c; say $a[3].WHAT <+camelia> rakudo-moar 00be1e: OUTPUT«(Parcel)(Parcel)» < GLRelia> rakudo-moar 467b79: OUTPUT«(List)(List)» < timotimo> "way back when"? at that time Seq didn't exist :) < ShimmerFairy> timotimo: it's in that 2010 bug report though < bartolin> ShimmerFairy: If you have looked at the ticket: I'm going to close it, because I don't see a bug there. At least nowadays one could use .Array if needed. Do you agree? < FROGGS> bartolin: it very much seems fixed < ShimmerFairy> bartolin: not to mention GLR has thrown a wrench in any list-related ticket :) < bartolin> m: my $a = [ "this", "is", "so", "gross" ]; my $b = [ "that", "is", "so", "funny" ]; my $c = $b[2..3].Array; $a[3] = $c; say $a.perl <+camelia> rakudo-moar 00be1e: OUTPUT«["this", "is", "so", ["so", "funny"]]» < GLRelia> rakudo-moar 467b79: OUTPUT«["this", "is", "so", ["so", "funny"]]» < FROGGS> a slice returns a list, and it stays a list, which is correct