-
I want to iterate a file line by line, is the following the normal way to do this in typst? #{
let lines = csv("list.txt", delimiter: "\n").first()
for line in lines {
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
frozolotl
May 24, 2024
Replies: 1 comment
-
Not quite. You should use the following instead: #for line in read("main.typ").split("\n") {
// …
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
TS60
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not quite. You should use the following instead: