Question: How would you write (using map /not/ a loop) an elisp function =number-of-factors= that takes the CSF of a positive integer (in list-of-dotted-pairs form) and
How would you write (using map /not/ a loop) an elisp function =number-of-factors= that takes the CSF of a positive integer (in list-of-dotted-pairs form) and returns how many factors that integer has?
#+BEGIN_SRC emacs-lisp (defun number-of-factors (csf) "Takes a CSF like '((2 . 3) (3 . 1) (5 . 2)) and returns 24." ;; ... your ONE line of code goes here ) #+END_SRC
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
