Hi Andy,

Many collection functions call "seq" on their arguments, therefore
those expect a Seqable (or a String, Iterable, Array, java.util.Map etc.),
not an IPersistentCollection (which coll? tests for).

Working these things out can get subtle.

Thanks,
Ambrose

On Fri, Jun 8, 2012 at 7:54 AM, Andy Coolware <andy.coolw...@gmail.com>wrote:

> I was wondering cause we can do all awesome stuff like that:
>
> user=> (last "abc")
> \c
> user=> (first "abc")
> \a
> user=> (map (fn[z] (str z "-")) "abc")
> ("a-" "b-" "c-")
>
> but this renders false
>
> user=> (coll? "abc")
> false
>
> A.
>
>
>
>  --
> 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
>

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