In clojure, how do I read a file into a sequence where each line is one element in the sequence. So I’d like to see the definition of the function get-lines so I could do the following:
(def lines (get-lines "test.txt"))
and lines is a non-lazy sequence.
To convert lazy sequence to non-lazy you can use
doalllike so: