On Sat, 2009-08-22 at 01:54 -0700, clint.laskowski wrote: > 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"
The key rule is that in Clojure, if a data structure can reasonably be viewed as a sequence, it can be turned into one. Thus => (seq "abcde") (\a \b \c \d \e) HTH, -- Michel Salim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---