Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun fullength (x)
- (cond
- ((null x) 0)
- ((atom x) 1)
- (t (+ (fullength (car x)) (fullength (cdr x))))
- )
- )
- (print (fullength `(1 2 3 4 5 3)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement