Question: Haskell Question The expression [(x, y) | x [1, 2], y [1, 2]] evaluates to: (Explain your answer) i) ([1, 2], [1, 2]) ii) [(1,
Haskell Question
The expression [(x, y) | x [1, 2], y [1, 2]] evaluates to: (Explain your answer)
i) ([1, 2], [1, 2]) ii) [(1, 2), (1, 2)] iii) [(1, 1), (2, 2)] iv) [(1, 1), (2, 1), (1, 2), (2, 2)] v) [(1, 1), (1, 2), (2, 1), (2, 2)]
There will be no points for the answer if there is no explanation OR if the explanation is wrong.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
