Hi, On May 6, 2:33 pm, Sean Devlin <[email protected]> wrote: > Why does (str :a) return ":a" and not "a"? I have to work around this > a lot, and I'm just curios what the reasoning to go this direction was.
str returns ":a" because (.toString :a) returns ":a". This is probably so things like (println :a) work as expected, but I don't know for sure. Anyways, an easy way to get "a" from ":a" is with name, ie: (name :a) ; "a" Hth, Alan > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > 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 [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
