Question: ( c ) ( 1 point ) Write down the type of let rec f x y = if x then { f y ,

(c)(1 point) Write down the type of
let rec f x y = if x then { f y, y } else { y, f x }
If you believe typing checking this function fails with "mismatched types", write "mis- matched types". If you believe this function should trigger the occurs-check exception in our type inference algorithm in Assignment 5, write "occurs-check exception".

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!