Miki Tebeka  committed 7a1f684

Doc about stream

  • Participants
  • Parent commits e710b0d
  • Branches default

Comments (0)

Files changed (1)

File src/csvlib.clj

-(ns csvlib
+(ns ^{:doc "CSV file library"
+      :author "Miki Tebeka <>"}
+  csvlib
   (:import (com.csvreader CsvReader CsvWriter)
   (:use [clojure.set :only (subset?)]))
     (take-while (complement nil?) (repeatedly read-record))))
 (defn read-csv
-  "Return a lazy sequence of records (maps) from CSV file.
+  "Return a lazy sequence of records (maps) from CSV file or input stream.
   With headers? map will be header->value, otherwise it'll be position->value.
     (format record)))
 (defn write-csv
-  "Write records to CSV.
+  "Write records to CSV file or output stream.
   Optional arguments are:
     delimiter - Delimiter to use (defaults to *delimiter*)