[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: recursive count down



The "num" in the third line should be "number"....



In article <309bbe$5rf@paperboy.gsfc.nasa.gov> Jamila Saleh,
jamila@neptune.gsfc.nasa.gov writes:
>I am trying to write a function that performs a count-down operation.  I
have
>coded the following using standard textbook material:
>
>(defun Count-down (number)
>      (cond ((= number 0) nil)
>            (t (print number) (Count-down (- num 1)))))
>
>Running the above with **(Count-down 4)** results in **0 is not a
sequence**
>
>If anyone knows what is wrong with the code please let me know.
>I can be reached also at jamila@jamila.gsfc.nasa.gov
Lynn Brock (lbrock@prosaix.com)
408/353-4781   408/353-1404 FAX