I am given the following function and I have to give the most general type.
\x y -> (==)(map x y)
My approach is on the picture attached. The solution is different tho, it is
Eq b=> (a->b)->[a]->[b]->Bool
I do no understand where the [b] is coming from.
Update: I found out that the type of
\x y z -> (==)(map x y) z
Is the same as the type of my original function. So basically you can drop one of the arguments in the lambda function but it's still kinda there, as we know that (==) takes 2 arguments? But why?
