Why option 1 is not a valid Haskell expression, but option2 is agood Haskell expression?
option 1: let x:y = 3:4 in x*x + y*y
option 2: let x:[y] = [3,4] in x*x + y*y
Expert Answer
An answer will be send to you shortly. . . . .
Why option 1 is not a valid Haskell expression, but option2 is agood Haskell expression?
option 1: let x:y = 3:4 in x*x + y*y
option 2: let x:[y] = [3,4] in x*x + y*y
An answer will be send to you shortly. . . . .