Guest User

Untitled

a guest
May 16th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.12 KB | None | 0 0
  1. ;; p04
  2. (defun element-count (x &optional (c 0))
  3.   (if (endp x)
  4.       c
  5.       (progn
  6.     (pop x)
  7.     (element-count x (+ c 1)))))
Add Comment
Please, Sign In to add comment