Given this sample: (ns test-csv (:gen-class) (:use clojure.contrib.command-line) (:use clojure-csv.core))
(defn x1 [val1 val2] (println val1 val2)) (defn process-file "Process csv file and prints a column in every row" [file-name] (let [data (slurp file-name) rows (parse-csv data)] (dorun (map #(println ( nth % 11 nil)) rows)))) (defn -main [& args] (with-command-line args "Get csv file name" [[file-name ".csv file name" "resultset.csv"]] [[file-name ".csv file name" 1]] (println "file-name:", file-name) (process-file file-name))) I would like to print out two or more values, or creating a vector of those values would be helpful. I have been experimenting, but either get errors or nothing printed out. I am just not sure how to approach this. Thanks. cmn -- 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