# New Ticket Created by  Zoffix Znet 
# Please include the string:  [perl #131279]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=131279 >


When looking up something with `[...]` postcircumfix, you can add more 
postcircumfixes to index the result:

    $ perl6 -e 'dd <a b c>[*][1]'
    "b"

But this silently gives wrong results if adverbs are present as well:

    $ perl6 -e 'dd <a b c>[*]:p[1]'
    (0 => "a", 1 => "b", 2 => "c")
    $ perl6 -e 'dd <a b c>[*]:v[1]'
    ("a", "b", "c")
    $ perl6 -e 'dd <a b c>[*]:exists[1]'
    (Bool::True, Bool::True, Bool::True)
    $ perl6 -e 'dd <a b c>[*]:p[10000000000000000000000000000000000]'
    (0 => "a", 1 => "b", 2 => "c")
    
    $ perl6 -e 'dd <a b c>[*]:delete[1]'
    (Failure.new(exception => X::AdHoc.new(payload => "Can not remove elements 
from a List"), backtrace => Backtrace.new), Failure.new(exception => 
X::AdHoc.new(payload => "Can not remove elements from a List"), backtrace => 
Backtrace.new), Failure.new(exception => X::AdHoc.new(payload => "Can not 
remove elements from a List"), backtrace => Backtrace.new))
    

Reply via email to