clojure.data.csv has options for the following:

(defn write-csv
  "Writes data to writer in CSV-format.

   Valid options are
     :separator (Default \\,)
     :quote (Default \\\")
     :guote? (A predicate function which determines if a string should
be quoted. Defaults to quoting only when necessary.)
     :newline (:lf (default) or :cr+lf)"
  [writer data & options]
  (let [opts (into {} options)
        separator (or (:separator opts) \,)
        quote (or (:quote opts) \")
        quote? (or (:quote? opts) #(some #{separator quote \return
\newline} %))
        newline (or (:newline opts) :lf)]
<snip>

Since (into {} options) is used to get the options into a map, it
seems that you need to specify options in this (write-csv writer data
[:separator \;] [:newline :lf+cr]).

Is this the recommended way to offer options? I was expecting (write-
csv writer data :separator \; :newline :lf+cr).


-- 
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