(doc count)
-------------------------
clojure.core/count
([coll])
  Returns the number of items in the collection. (count nil) returns
  0.  Also works on strings, arrays, and Java Collections and Maps
nil


On Wed, Jan 28, 2009 at 11:15 AM, Peter Wolf <opus...@gmail.com> wrote:
>
> Here's a dumb question, but I can't find it in the docs:
>
> How do I get the length of a sequence?  Is there some generic way to
> find the number of elements in something that might be list, map, vector
> or lazy?
>
> There must be some sort of built in function, or an idiom
>
> Thanks
> P
>
> >
>



-- 
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?

--~--~---------~--~----~------------~-------~--~----~
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 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to