Question: In Racket programming language create a recursive function called (correct-type? checker los). This function will take two arguments, first a boolean predicate correct-type?, as well

In Racket programming language create a recursive function called (correct-type? checker los). This function will take two arguments, first a boolean predicate "correct-type?", as well as a list "los". This will return true if and only if all elements in the list "los" is of the "checker", that is, if all elements are of the same type. ex : > (correct-type? number? '(4 5 2 1 4 9) returns #t > (correct-type? number? '(4 5 "cat" 1 4 9) returns #f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
