Question: f# What is the type inferred for the following function? let swapElems [a; b] = [b;a] e 'a->'a 'b -> 'b a list -> 'a
f#

What is the type inferred for the following function? let swapElems [a; b] = [b;a] e 'a->'a 'b -> 'b a list -> 'a list 'b list -> 'a list a list -> 'b list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
