Question: Exercise 3 (define (max-from n l) ((match l ['() n] [(cons x xs) (max-from (max n x) xs)]))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Exercise 4 (define (min-from n
Exercise 3 (define (max-from n l) ((match l ['() n] [(cons x xs) (max-from (max n x) xs)]))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Exercise 4 (define (min-from n l) ((match l ['() n] [(cons x xs) (min-from (min n x) xs)]))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Exercise 5: revisit Exercise 3 and Exercise 4 (define (min-max-from op n l) (match l ['() (cons n n)] [(cons a rest) (min-max-from op (op n a) rest)]))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
