Question: Write a recursive function to get the minimum number from a sequence of numbers. Please name the function as min. This function should tell the

Write a recursive function to get the minimum number from a sequence of numbers. Please name the function as min. This function should tell the minimum number in a given list. For example, (max ( 5 7 9 3 6)) will result in 3.

What does the following recursive Scheme function do

(define (TEST L)

(if ( null L) nil

(if ( atom L) Not_A_LIST

(if (null (cdr L) ) (car L) (TEST ( cdr L )))

)

)

)

9. What does the function defined in problem 8 return when it is invoked as

(TEST ( (a b ) d e k ( f g h ) ) )

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!