Question: Answer all parts correctly and step by step with explainations Consider the functions swap and pair, defined respectively as swap ( x , y )
Answer all parts correctly and step by step with explainations Consider the functions swap and pair, defined respectively as
swap
pair
a points What is the type of swap?
b points What is the type of pair?
c points Notice that, in the types of swap and pair, that and from the respective function definitions above correspond to two different polymorphic type variables. Why is this, ie why wouldn't they be the same?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
