JanetDocs
Playground
I'm feeling lucky
GitHub sign in
Run
Format
# Reading a file line by line, using loop's :iterate verb, and adding the line lengths (with [fl (file/open "filepath")] (var sm 0) (loop [line :iterate (file/read fl :line)] (+= sm (length line))) sm)