{"atom":"methods/index-into","family":"methods","slug":"index-into","header":{"atom":"methods/index-into","axes":"() | (1,) | (1,2,3) | [1,2,3] | (1..3) | (1,(2,3)) | <a b> | (Any,) | (1,Nil,2) | (1,\"a\")","cols":"0 | 1 | 2 | -1 | 99 | 1/2 | Inf","form":"({A})[{B}]","gen":"gen/ladder.raku","ladder":"list × index, both orders","source":"generated"},"axes":["()","(1,)","(1,2,3)","[1,2,3]","(1..3)","(1,(2,3))","<a b>","(Any,)","(1,Nil,2)","(1,\"a\")"],"cols":["0","1","2","-1","99","1/2","Inf"],"engines":["rakudo-2026.07","rakupp-v3.14.0-77-gf431f48-dirty"],"kinds":["ref","pp"],"defFrom":"ladder:list×index","counts":{"a":50,"f":0,"d":20,"c":0,"r":0,"n":0},"files":["generated/methods/index-into.grid"],"records":[["0001","() | 0","(())[0]","Any","a",["Any","Any"],0,[["type","Any"]]],["0002","() | 1","(())[1]","Any","a",["Any","Any"],0,[["type","Any"]]],["0003","() | 2","(())[2]","Any","a",["Any","Any"],0,[["type","Any"]]],["0004","() | -1","sub { (())[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0005","() | 99","(())[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0006","() | 1/2","(())[1/2]","Any","a",["Any","Any"],0,[["type","Any"]]],["0007","() | Inf","(())[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0],["0008","(1,) | 0","((1,))[0]","1","a",["1","1"],0,[["type","Int"]]],["0009","(1,) | 1","((1,))[1]","Any","a",["Any","Any"],0,[["type","Any"]]],["0010","(1,) | 2","((1,))[2]","Any","a",["Any","Any"],0,[["type","Any"]]],["0011","(1,) | -1","sub { ((1,))[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0012","(1,) | 99","((1,))[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0013","(1,) | 1/2","((1,))[1/2]","1","a",["1","1"],0,[["type","Int"]]],["0014","(1,) | Inf","((1,))[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0],["0015","(1,2,3) | 0","((1,2,3))[0]","1","a",["1","1"],0,[["type","Int"]]],["0016","(1,2,3) | 1","((1,2,3))[1]","2","a",["2","2"],0,[["type","Int"]]],["0017","(1,2,3) | 2","((1,2,3))[2]","3","a",["3","3"],0,[["type","Int"]]],["0018","(1,2,3) | -1","sub { ((1,2,3))[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0019","(1,2,3) | 99","((1,2,3))[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0020","(1,2,3) | 1/2","((1,2,3))[1/2]","1","a",["1","1"],0,[["type","Int"]]],["0021","(1,2,3) | Inf","((1,2,3))[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0],["0022","[1,2,3] | 0","([1,2,3])[0]","1","a",["1","1"],0,[["type","Int"]]],["0023","[1,2,3] | 1","([1,2,3])[1]","2","a",["2","2"],0,[["type","Int"]]],["0024","[1,2,3] | 2","([1,2,3])[2]","3","a",["3","3"],0,[["type","Int"]]],["0025","[1,2,3] | -1","sub { ([1,2,3])[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0026","[1,2,3] | 99","([1,2,3])[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0027","[1,2,3] | 1/2","([1,2,3])[1/2]","1","a",["1","1"],0,[["type","Int"]]],["0028","[1,2,3] | Inf","([1,2,3])[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0],["0029","(1..3) | 0","((1..3))[0]","1","a",["1","1"],0,[["type","Int"]]],["0030","(1..3) | 1","((1..3))[1]","2","a",["2","2"],0,[["type","Int"]]],["0031","(1..3) | 2","((1..3))[2]","3","a",["3","3"],0,[["type","Int"]]],["0032","(1..3) | -1","sub { ((1..3))[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0033","(1..3) | 99","((1..3))[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0034","(1..3) | 1/2","((1..3))[1/2]","1","a",["1","1"],0,[["type","Int"]]],["0035","(1..3) | Inf","((1..3))[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0],["0036","(1,(2,3)) | 0","((1,(2,3)))[0]","1","a",["1","1"],0,[["type","Int"]]],["0037","(1,(2,3)) | 1","((1,(2,3)))[1]","$(2, 3)","a",["$(2, 3)","$(2, 3)"],0,[["type","List"]]],["0038","(1,(2,3)) | 2","((1,(2,3)))[2]","Any","a",["Any","Any"],0,[["type","Any"]]],["0039","(1,(2,3)) | -1","sub { ((1,(2,3)))[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0040","(1,(2,3)) | 99","((1,(2,3)))[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0041","(1,(2,3)) | 1/2","((1,(2,3)))[1/2]","1","a",["1","1"],0,[["type","Int"]]],["0042","(1,(2,3)) | Inf","((1,(2,3)))[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0],["0043","<a b> | 0","(<a b>)[0]","\"a\"","a",["\"a\"","\"a\""],0,[["type","Str"]]],["0044","<a b> | 1","(<a b>)[1]","\"b\"","a",["\"b\"","\"b\""],0,[["type","Str"]]],["0045","<a b> | 2","(<a b>)[2]","Any","a",["Any","Any"],0,[["type","Any"]]],["0046","<a b> | -1","sub { (<a b>)[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0047","<a b> | 99","(<a b>)[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0048","<a b> | 1/2","(<a b>)[1/2]","\"a\"","a",["\"a\"","\"a\""],0,[["type","Str"]]],["0049","<a b> | Inf","(<a b>)[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0],["0050","(Any,) | 0","((Any,))[0]","Any","a",["Any","Any"],0,[["type","Any"]]],["0051","(Any,) | 1","((Any,))[1]","Any","a",["Any","Any"],0,[["type","Any"]]],["0052","(Any,) | 2","((Any,))[2]","Any","a",["Any","Any"],0,[["type","Any"]]],["0053","(Any,) | -1","sub { ((Any,))[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0054","(Any,) | 99","((Any,))[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0055","(Any,) | 1/2","((Any,))[1/2]","Any","a",["Any","Any"],0,[["type","Any"]]],["0056","(Any,) | Inf","((Any,))[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0],["0057","(1,Nil,2) | 0","((1,Nil,2))[0]","1","a",["1","1"],0,[["type","Int"]]],["0058","(1,Nil,2) | 1","((1,Nil,2))[1]","Any","a",["Any","Any"],0,[["type","Any"]]],["0059","(1,Nil,2) | 2","((1,Nil,2))[2]","2","a",["2","2"],0,[["type","Int"]]],["0060","(1,Nil,2) | -1","sub { ((1,Nil,2))[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0061","(1,Nil,2) | 99","((1,Nil,2))[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0062","(1,Nil,2) | 1/2","((1,Nil,2))[1/2]","1","a",["1","1"],0,[["type","Int"]]],["0063","(1,Nil,2) | Inf","((1,Nil,2))[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0],["0064","(1,\"a\") | 0","((1,\"a\"))[0]","1","a",["1","1"],0,[["type","Int"]]],["0065","(1,\"a\") | 1","((1,\"a\"))[1]","\"a\"","a",["\"a\"","\"a\""],0,[["type","Str"]]],["0066","(1,\"a\") | 2","((1,\"a\"))[2]","Any","a",["Any","Any"],0,[["type","Any"]]],["0067","(1,\"a\") | -1","sub { ((1,\"a\"))[-1] }","is rejected","d",["NOCOMPILE: ===SORRY!=== Error while compiling /Users/ash/rakugrid/tmp/confirm.raku Unsupported use of a negative -1 subscript to index from the end. In","ERR:X::OutOfRange"],0,0],["0068","(1,\"a\") | 99","((1,\"a\"))[99]","Any","a",["Any","Any"],0,[["type","Any"]]],["0069","(1,\"a\") | 1/2","((1,\"a\"))[1/2]","1","a",["1","1"],0,[["type","Int"]]],["0070","(1,\"a\") | Inf","((1,\"a\"))[Inf]","throws X::Numeric::CannotConvert","d",["ERR:X::Numeric::CannotConvert","Any"],0,0]]}