def indexed
import bolt@1.27.0.0/src/rules/pedantic/rewalk.bend as Rewalkimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
420# the rest of the chain indexes the call
421def indexed(rest: Tree.Node) -> Bool:
422 match rest:
423 case Tree.NCons{Tree.Group{Lex.Tok{k, +o, l, c}, kids, close}, tail}:
424 String.eq(o, "[")
425 case other:
426 False{}