On Sat, Aug 22, 2009 at 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)

'seq' creates a sequence out of almost anything, including strings:

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

Note this is a lazy seq, though the laziness doesn't matter
much on a string.  A seq is not exactly the same as a list,
but will generally do.

--Chouser

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