The following code appears, which causes line-seq to read 4 lines from file . Is this some kind of buffering mechanism? Do I need to use lazy-cat ? If so, how can I apply to create a macro in a sequence, as if it were variable arguments?
(defn char-seq [rdr] (let [coll (line-seq rdr)] (apply concat (map (fn [x] (println \,) x) coll)))) (def tmp (char-seq (clojure.contrib.io/reader file))) ;, ;, ;, ;,
Pedro silva
source share