Thanks for your answer. I remember the notes on clojure-csv saying it employed lazy I/O. So, it looks like by using slurp, there is still lazy-io going on.
On Jun 17, 10:46 am, Miki <miki.teb...@gmail.com> wrote: > parse-csv returns a sequence of vectors. The "functional way" of traversing > a sequence is using map: > > (ns foo > (:gen-class) > (:use clojure-csv.core)) > > (defn process-file > "Process csv file and prints first item in every row" > [file-name] > (let [data (slurp file-name) > rows (parse-csv data)] > (dorun (map #(println (first %)) rows)))) > > (defn -main [& args] > (process-file "resultset.csv")) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en