Length of a list: Difference between revisions

From mojo_puzzler
Jump to navigation Jump to search
(Created page with "===== Return to: Insightful Comments ===== Matt Howard Keybase 20211019 8:00am EST: (defun get_length (my_list) (if my_list (+ 1 (get_length (r my_list))) 0 ) )")
 
(No difference)

Latest revision as of 02:06, 18 November 2023

Return to: Insightful Comments

Matt Howard Keybase 20211019 8:00am EST:

(defun get_length (my_list)
  (if my_list
      (+ 1 (get_length (r my_list)))
      0 
  )
)