typst-0.9: test/typ/compiler/array-09.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/compiler/array-09.typ"
( line 2 , column 2 )
(Block
(CodeBlock
[ Let
(BasicBind (Just (Identifier "array")))
(Array
[ Reg (Literal (Int 1))
, Reg (Literal (Int 2))
, Reg (Literal (Int 3))
, Reg (Literal (Int 4))
])
, FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "at")) (Ident (Identifier "array")))
[ NormalArg (Literal (Int 0)) ])
, NormalArg (Literal (Int 1))
]
, FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "at")) (Ident (Identifier "array")))
[ NormalArg (Negated (Literal (Int 1))) ])
, NormalArg (Literal (Int 4))
]
, FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "at")) (Ident (Identifier "array")))
[ NormalArg (Negated (Literal (Int 2))) ])
, NormalArg (Literal (Int 3))
]
, FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "at")) (Ident (Identifier "array")))
[ NormalArg (Negated (Literal (Int 3))) ])
, NormalArg (Literal (Int 2))
]
, FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "at")) (Ident (Identifier "array")))
[ NormalArg (Negated (Literal (Int 4))) ])
, NormalArg (Literal (Int 1))
]
]))
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [✅]),
text(body: [✅]),
text(body: [✅]),
text(body: [✅]),
text(body: [✅]),
parbreak() })