Why does the function
(defun counter (list)
(if (null list)
0
(+ 1 ( name (cdr list) )
)
)
loop?
I can't quite see how the self-calling of counter works either.
weird lisp loop type operation
Re: weird lisp loop type operation
Please use code tags for formatting code.
(name ...) is not a standard Common Lisp function. As shown, the counter doesn't loop by itself.
(name ...) is not a standard Common Lisp function. As shown, the counter doesn't loop by itself.