1. Miki Tebeka
  2. clojurewise

Commits

Miki Tebeka  committed 73ceae0

Bug fix

  • Participants
  • Parent commits 4f30eb9
  • Branches default

Comments (0)

Files changed (1)

File csv.clj

View file
   ([filename] (csv-seq filename false))
   ([filename headers?]
    (let [records (record-seq filename)
-         headers (if headers? (first records) (range (count records)))]
+         headers (if headers? (first records) (range (count (first records))))]
     (map #(zipmap headers %) (if headers? (rest records) records)))))