You could try str and read-string functions. Though I'm not sure if
that is the safest way to do that.

(str my-structure)

(read-string my-string)

-Matt Courtney


On May 7, 11:55 am, Michael Jaaka <michael.ja...@googlemail.com>
wrote:
> Hi!
>
> I was searching for function which converts to and back all clojure
> structures like maps, vectors and sequences to serializable java
> objects.
>
> But couldn't find any. Is there anyone who already done this?
> Note that with maps keywords must be converted to strings (with some
> special marker character) and after serialization back to keywords.
> Also such conversion must be done with deep recursion. It would be
> nice if ordered structures like TreeMaps were respected (I know that
> it maybe is impossible due to customizable comparator).
>
> I need that because I'm doing RMI conversation between multiple
> instances of REPL (other methods of protocol are not acceptable in my
> case).
>
> My proposition for names of such function is pack and unpack.
>
> Thanks in advance!
>
> --
> 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 
> athttp://groups.google.com/group/clojure?hl=en

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