On 17 February 2010 22:10, metaperl <scheme...@gmail.com> wrote:

> So what functions exist for conversion from chars to string and vice
> versa?
>

Strings can be passed to any function expecting a collection like map,
reduce, etc.
To convert chars to a string you can use (str).
Most of the string/character support is left to java interop but you can
find some extra helpers in contrib also


user=> (str \a \b \c)
"abc"
user=> (apply str [\a \b \c])
"abc"
user=> (map #(Character/toUpperCase %) "abc")
(\A \B \C)

hope that helps :)

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