What will the behaviour of line-seq be?
问题 I'd like to understand the behaviour of a lazy sequence if I iterate over with doseq but hold onto part of the first element. (with-open [log-file-reader (clojure.java.io/reader (clojure.java.io/file input-file-path))] ; Parse line parse-line returns some kind of representation of the line. (let [parsed-lines (map parse-line (line-seq log-file-reader)) first-item (first parsed-lines)] ; Iterate over the parsed lines (doseq [line parsed-lines] ; Do something with a side-effect ))) I don't want