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

Reply via email to