Length of a list

From mojo_puzzler
Revision as of 02:06, 18 November 2023 by Gneale (talk | contribs) (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 ) )")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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 
  )
)