Question: 3. Consider a function with polymorphic type f : ('a * 'b) -> ('b -> 'a) -> a 3.1. What is the type of

3. Consider a function with polymorphic type f : ('a * 'b)

3. Consider a function with polymorphic type f : ('a * 'b) -> ('b -> 'a) -> a 3.1. What is the type of f (0, true) ? 3.2. What is the type of fun x y -> f (x, y) ? Does it have the same type as f ? Briefly explain your reasoning.

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 Programming Questions!