Chapter 10: Problem 18
Consider the following Scheme function: (define (mystery input-list) (cond ((null? input-list) 0) (else (+ 1 (mystery (cdr input-list)) )) )) What is the result of invoking the function as follows? (mystery (list 34 5)) Explain what this function does in general.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.