Discussion of Common Lisp
Why does the function
(defun counter (list)
(if (null list)
(+ 1 ( name (cdr list) )
I can't quite see how the self-calling of counter works either.
- Posts: 1
- Joined: Thu Sep 15, 2011 5:47 am
Please use code tags for formatting code.
(name ...) is not a standard Common Lisp function. As shown, the counter doesn't loop by itself.
- Posts: 613
- Joined: Sun Jun 29, 2008 4:02 am
- Location: Warsaw, Poland
Return to Common Lisp
Who is online
Users browsing this forum: No registered users and 2 guests