Welcome to Clojure!

A String is a form of a Sequence, so the correct function is seq.

user=>(seq "test")
(\t \e \s \t)

The sequence abstraction is on of may favorite things about Clojure.
It is an interface most collections implement, and it makes it very
consistent to manipulate any "collection-like" object.  For mroe read
here:

http://clojure.org/sequences

Also, watching Rich's presentation for Java and/or Lisp developers
will help a lot.


I hope this helps.
Sean

On Aug 22, 4:54 am, "clint.laskowski" <clint.laskow...@gmail.com>
wrote:
> Sorry if this is a FAQ. I'm a Clojure newbie.
>
> What is the best way to iterate through the characters of a string? Is
> there some kind of EXPLODE function such that:
>
> => (explode "test")
> (\t \e \s \t)
>
> I did a Google search but the closest thing I found was SUBS:
>
> =>(subs "test" 1 2)
> "t"
--~--~---------~--~----~------------~-------~--~----~
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