On Aug 9, 2010, at 7:24 PM, Carlos Torres wrote:

> I'm trying to create a function that takes a simple list and returns the 
> number of zeros in the list.

user=> (count (filter zero? [0 1 2 3 0 4 5 6 0 7 8 9]))
3

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