Search found 1 match

by galosi198
Thu Sep 15, 2011 5:50 am
Forum: Common Lisp
Topic: weird lisp loop type operation
Replies: 1
Views: 3486

weird lisp loop type operation

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.