2010/2/17 Wolfgang Meyer :
> To convert a string to a char sequence, you can use:
>
> (seq (.toCharArray "abc"))
> Clojure strings are Java strings, in case you didn't know.
> Wolfgang
Not so hard.
In the general case you have nothing to do: basic collection handling
functions from core call (se
To convert a string to a char sequence, you can use:
(seq (.toCharArray "abc"))
Clojure strings are Java strings, in case you didn't know.
Wolfgang
On Wed, Feb 17, 2010 at 12:10 PM, metaperl wrote:
> The reference manual example implies that a list of chars is not a
> string:
>
> (let [[a b
Also, you might want to check out clojure contrib for some string
stuff. str-utils2 if you're running 1.1, string if you're on edge.
Sean
On Feb 17, 6:10 am, metaperl wrote:
> The reference manual example implies that a list of chars is not a
> string:
>
> (let [[a b & c :as str] "asdjhhfdas"]
On 17 February 2010 22:10, metaperl 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
The reference manual example implies that a list of chars is not a
string:
(let [[a b & c :as str] "asdjhhfdas"]
[a b c str])
->[\a \s (\d \j \h \h \f \d \a \s) "asdjhhfdas"]
So what functions exist for conversion from chars to string and vice
versa?
Also how should I have been able to use th