On Wed, Sep 9, 2009 at 00:16, Richard Newman <holyg...@gmail.com> wrote:
>
>> So, my question is this: is there a way to print a structure out in
>> a fashion that it can be read back in correctly (i.e. with strings
>> being quoted), and without having to write my own print function?
>
> prn.
>
> user=> (prn {:foo ["bar" 5.0]})
> {:foo ["bar" 5.0]}
> nil
>

If you want the results to be more pleasing to read (i.e. not one
giant line) have a look at:

http://richhickey.github.com/clojure-contrib/pprint-api.html

// Ben

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