--- parse tree --- [ Code "test/typ/compiler/array-33.typ" ( line 1 , column 2 ) (Let (BasicBind (Just (Identifier "test"))) (FuncExpr [ NormalParam (Identifier "x") , NormalParam (Identifier "y") ] (Block (CodeBlock [ If [ ( Equals (Ident (Identifier "x")) (Ident (Identifier "y")) , Block (Content [ Text "\9989" ]) ) , ( Literal (Boolean True) , Block (Content [ Text "\10060" , Text "(" , Code "test/typ/compiler/array-33.typ" ( line 1 , column 47 ) (FuncCall (Ident (Identifier "repr")) [ NormalArg (Ident (Identifier "x")) ]) , Space , Text "/" , Text "=" , Space , Code "test/typ/compiler/array-33.typ" ( line 1 , column 59 ) (FuncCall (Ident (Identifier "repr")) [ NormalArg (Ident (Identifier "y")) ]) , Text ")" ]) ) ] ])))) , SoftBreak , Comment , Code "test/typ/compiler/array-33.typ" ( line 3 , column 2 ) (FuncCall (Ident (Identifier "test")) [ NormalArg (FuncCall (FieldAccess (Ident (Identifier "sorted")) (Array [])) []) , NormalArg (Array []) ]) , SoftBreak , Code "test/typ/compiler/array-33.typ" ( line 4 , column 2 ) (FuncCall (Ident (Identifier "test")) [ NormalArg (FuncCall (FieldAccess (Ident (Identifier "sorted")) (Array [])) [ KeyValArg (Identifier "key") (FuncExpr [ NormalParam (Identifier "x") ] (Ident (Identifier "x"))) ]) , NormalArg (Array []) ]) , SoftBreak , Code "test/typ/compiler/array-33.typ" ( line 5 , column 2 ) (FuncCall (Ident (Identifier "test")) [ NormalArg (FuncCall (FieldAccess (Ident (Identifier "sorted")) (Times (Array [ Literal (Boolean True) , Literal (Boolean False) ]) (Literal (Int 10)))) []) , NormalArg (Plus (Times (Array [ Literal (Boolean False) ]) (Literal (Int 10))) (Times (Array [ Literal (Boolean True) ]) (Literal (Int 10)))) ]) , SoftBreak , Code "test/typ/compiler/array-33.typ" ( line 6 , column 2 ) (FuncCall (Ident (Identifier "test")) [ NormalArg (FuncCall (FieldAccess (Ident (Identifier "sorted")) (Array [ Literal (String "it") , Literal (String "the") , Literal (String "hi") , Literal (String "text") ])) []) , NormalArg (Array [ Literal (String "hi") , Literal (String "it") , Literal (String "text") , Literal (String "the") ]) ]) , SoftBreak , Code "test/typ/compiler/array-33.typ" ( line 7 , column 2 ) (FuncCall (Ident (Identifier "test")) [ NormalArg (FuncCall (FieldAccess (Ident (Identifier "sorted")) (Array [ Literal (String "I") , Literal (String "the") , Literal (String "hi") , Literal (String "text") ])) [ KeyValArg (Identifier "key") (FuncExpr [ NormalParam (Identifier "x") ] (Ident (Identifier "x"))) ]) , NormalArg (Array [ Literal (String "I") , Literal (String "hi") , Literal (String "text") , Literal (String "the") ]) ]) , SoftBreak , Code "test/typ/compiler/array-33.typ" ( line 8 , column 2 ) (FuncCall (Ident (Identifier "test")) [ NormalArg (FuncCall (FieldAccess (Ident (Identifier "sorted")) (Array [ Literal (String "I") , Literal (String "the") , Literal (String "hi") , Literal (String "text") ])) [ KeyValArg (Identifier "key") (FuncExpr [ NormalParam (Identifier "x") ] (FuncCall (FieldAccess (Ident (Identifier "len")) (Ident (Identifier "x"))) [])) ]) , NormalArg (Array [ Literal (String "I") , Literal (String "hi") , Literal (String "the") , Literal (String "text") ]) ]) , SoftBreak , Code "test/typ/compiler/array-33.typ" ( line 9 , column 2 ) (FuncCall (Ident (Identifier "test")) [ NormalArg (FuncCall (FieldAccess (Ident (Identifier "sorted")) (Array [ Literal (Int 2) , Literal (Int 1) , Literal (Int 3) , Literal (Int 10) , Literal (Int 5) , Literal (Int 8) , Literal (Int 6) , Negated (Literal (Int 7)) , Literal (Int 2) ])) []) , NormalArg (Array [ Negated (Literal (Int 7)) , Literal (Int 1) , Literal (Int 2) , Literal (Int 2) , Literal (Int 3) , Literal (Int 5) , Literal (Int 6) , Literal (Int 8) , Literal (Int 10) ]) ]) , SoftBreak , Code "test/typ/compiler/array-33.typ" ( line 10 , column 2 ) (FuncCall (Ident (Identifier "test")) [ NormalArg (FuncCall (FieldAccess (Ident (Identifier "sorted")) (Array [ Literal (Int 2) , Literal (Int 1) , Literal (Int 3) , Negated (Literal (Int 10)) , Negated (Literal (Int 5)) , Literal (Int 8) , Literal (Int 6) , Negated (Literal (Int 7)) , Literal (Int 2) ])) [ KeyValArg (Identifier "key") (FuncExpr [ NormalParam (Identifier "x") ] (Ident (Identifier "x"))) ]) , NormalArg (Array [ Negated (Literal (Int 10)) , Negated (Literal (Int 7)) , Negated (Literal (Int 5)) , Literal (Int 1) , Literal (Int 2) , Literal (Int 2) , Literal (Int 3) , Literal (Int 6) , Literal (Int 8) ]) ]) , SoftBreak , Code "test/typ/compiler/array-33.typ" ( line 11 , column 2 ) (FuncCall (Ident (Identifier "test")) [ NormalArg (FuncCall (FieldAccess (Ident (Identifier "sorted")) (Array [ Literal (Int 2) , Literal (Int 1) , Literal (Int 3) , Negated (Literal (Int 10)) , Negated (Literal (Int 5)) , Literal (Int 8) , Literal (Int 6) , Negated (Literal (Int 7)) , Literal (Int 2) ])) [ KeyValArg (Identifier "key") (FuncExpr [ NormalParam (Identifier "x") ] (Times (Ident (Identifier "x")) (Ident (Identifier "x")))) ]) , NormalArg (Array [ Literal (Int 1) , Literal (Int 2) , Literal (Int 2) , Literal (Int 3) , Negated (Literal (Int 5)) , Literal (Int 6) , Negated (Literal (Int 7)) , Literal (Int 8) , Negated (Literal (Int 10)) ]) ]) , ParBreak ] --- evaluated --- { text(body: [ ]), text(body: [✅]), text(body: [ ]), text(body: [✅]), text(body: [ ]), text(body: [✅]), text(body: [ ]), text(body: [✅]), text(body: [ ]), text(body: [✅]), text(body: [ ]), text(body: [✅]), text(body: [ ]), text(body: [✅]), text(body: [ ]), text(body: [✅]), text(body: [ ]), text(body: [✅]), parbreak() }