Re: Please help! Really simple function not working.

2010-08-09 Thread Carlos Torres
On Mon, Aug 9, 2010 at 9:00 PM, Phil Hagelberg wrote: > On Mon, Aug 9, 2010 at 5:24 PM, Carlos Torres > wrote: > > (defn count-zeros > > "Returns the numbers of zero in a simple sequence of numbers" > > [list1] > > (cond > > (empty?

Please help! Really simple function not working.

2010-08-09 Thread Carlos Torres
Hi to everyone, I'm trying to create a function that takes a simple list and returns the number of zeros in the list. So I'm assuming that they will enter a list containing only numbers. This is what I have so far, but it only works when the list empty. Can somebody tell me what I'm missing? (def