August 19, 2024

P04 - Find the number of elements of a list

lisp

(defun comprimento (lista)
  (if (null lista)
      0
    (1+ (comprimento (rest lista)))))
Be first to comment
Leave a reply