Hi Ambrose,

On Fri, Jun 8, 2012 at 12:22 AM, Ambrose Bonnaire-Sergeant
<abonnaireserge...@gmail.com> wrote:
> On Fri, Jun 8, 2012 at 12:11 PM, Tim Visher <tim.vis...@gmail.com> wrote:
>>
>>
>> 2. While I would very much expect the type test (coll? seq?) to return
>> false on a string, I would _not_ expect the capability test
>> (sequential?) to return false, and it does for a String. Is this the
>> expected behavior? I would think that any seqable would return true
>> for sequential?. What do we think?
>
> sequential? is a type predicate also. This probably works as expected in
> CLJS
> using protocols.
>
> Every Seqable is not Sequential.
>
> (sequential? {:a 1}) => false

Good point. I guess I'm just looking for a seqable? predicate but that
appears to only exist in contrib and in incubator, as referenced later
in this thread. I've never personally needed this but it seemed
germain to the OP.

At least in the Himera REPL:

    cljs.user> (sequential? "String")
    false
    cljs.user> (seq? "String")
    false

So we get the same behavior there.

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail

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