On Fri, Nov 28, 2008 at 3:33 PM, Chouser <[EMAIL PROTECTED]> wrote:
>
> On Thu, Nov 27, 2008 at 11:50 PM, Stephen C. Gilardi <[EMAIL PROTECTED]> 
> wrote:
>>
>> You might also consider these Clojure functions:
>> user=> (count "")
>> 0
>> user=> (empty? "")
>> true
>
> or (seq "") which returns nil on empty.

I assume (count largecoll) and (empty? largecoll) would be more
efficient than (seq largecoll)?

-- 
Michael Wood <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to