Skip Menu |
Report information
Id: 131280
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] Nested slices do not work when adverbs are present
Download (untitled) / with headers
text/plain 1003b
You can give a nested slice as a list and get the result similarly nested, however, this fails when you add any(?) adverbs and you only get results for top-level indexes: m: dd ("a".."z")[(3, (4, (5,)))] rakudo-moar 6bb1b5: OUTPUT: «("d", ("e", ("f",)))␤» m: dd ("a".."z")[(3, (4, (5,)))]:p rakudo-moar 6bb1b5: OUTPUT: «(3 => "d",)␤» m: dd ("a".."z")[(3, (4, (5,)))]:k rakudo-moar 6bb1b5: OUTPUT: «(3,)␤» m: dd ("a".."z")[(3, (4, (5,)))]:kv rakudo-moar 6bb1b5: OUTPUT: «(3, "d")␤» m: dd ("a".."z").Hash{('a', ('m', ('s')))} rakudo-moar 6bb1b5: OUTPUT: «("b", "n", "t")␤» m: dd ("a".."z").Hash{('a', ('m', ('s')))}:p rakudo-moar 6bb1b5: OUTPUT: «(:a("b"),)␤» m: dd ("a".."z").Hash{('a', ('m', ('s')))}:v rakudo-moar 6bb1b5: OUTPUT: «("b",)␤» m: dd ("a".."z").Hash{('a', ('m', ('s')), 'u')}:p rakudo-moar 6bb1b5: OUTPUT: «(:a("b"), :u("v"))␤»


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org