(defun count(x) (cond ((null x) 0) ((atom x)1) (t (+ (count (car x)) (count (cdr x)))))) (write (count'((1 2)3)))
Standard input is empty
3
WARNING: DEFUN/DEFMACRO(COUNT): #<PACKAGE COMMON-LISP> is locked Ignore the lock and proceed WARNING: DEFUN/DEFMACRO: redefining function COUNT in /home/JGeBra/prog.lisp, was defined in C