The current behavior of splitLines is to eagerly split all the lines and return an array of strings.
This PR improves this by returning an iterator instead, which will emit lines. This lets callers decide how to best use the splitLines function (i.e. lazily enumerate over lines)
coverage: 43.012%. first build when pulling 6f26e2e378f736f922151ed5c977f722afb311a7 on Goose97:split-lines-iterator into bb063e49e305210316681369d3d6eb8e779cd58b on jlfwong:main.
The current behavior of splitLines is to eagerly split all the lines and return an array of strings.
This PR improves this by returning an iterator instead, which will emit lines. This lets callers decide how to best use the splitLines function (i.e. lazily enumerate over lines)
Relates to #433