riff icon indicating copy to clipboard operation
riff copied to clipboard

Implement builtin function to iterate over lines in a file

Open darrylabbate opened this issue 2 years ago • 0 comments

  • lines(file)
    • file is an already open file object; file is not automatically closed once EOF is reached
  • lines("filename")
    • File at path "filename" is opened, and closed for the user automatically

Depends on:

  • #22
for ln in lines("filename") {
  ...
}

darrylabbate avatar Nov 02 '22 06:11 darrylabbate