Given output from the repl of a data structure like this:

#+BEGIN_SRC clojure
foo.core> (list-users)
[{:path "/",
  :create-date #<DateTime 2015-03-18T10:11:10.000-05:00>,
  :user-id "FOOFOOFOO",
  :user-name "foo"}
 {:path "/",
  :create-date #<DateTime 2013-05-29T13:39:00.000-05:00>,
  :user-id "BARBARBAR",
  :user-name "bar"}]
nil
foo.core>
#+END_SRC

What is a good way to mangle the data into a CSV like this:

#+BEGIN_EXAMPLE
path,create-date,user-id,user-name
/,#<DateTime 2015-03-18T10:11:10.000-05:00>,FOOFOOFOO,foo
/,#<DateTime 2013-05-29T13:39:00.000-05:00>,BARBARBAR,bar
#+END_EXAMPLE

I've tried using data.csv but can't seem to get the data formatted correctly.


--
Kyle Sexton

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to