> (rest anything) returns a seq, by definition. It's not about Strings, it's
> the contract of rest. A String is not a seq, but it's viewable as a seq, in
> which case each element of the seq will be a character of the String.
>
> Note that this is not particular to String, but to almost any clojure
> datastructure :
>
> (rest [1 2 3])  doesn't return a vector either, but a seq: (2 3)
>
> etc.
>
> You seem to want to not use seq abstractions, but String manipulation
> abstractions, here.

That's a fair criticism. I suppose that I'm not necessarily looking
for specifically String manipulation abstractions (I can just do a
(.substr "abc" 1) to get "bc" as a String after all), but rather
looking for an abstraction that takes something that's addressable as
a sequence and returns it in the same format or type instead of a seq.

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