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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!