Totally get lost of the following example that returning a function
getAddFunc :: Int -> (Int -> Int)
getAddFunc x y = x + y
adds3 = getAddFunc 3
fourPlus3 = adds3 4
the function signature Int -> (Int -> Int) told me it accept an Int and function that typed Int -> Int And I am very confused about the function definition x y = x + y, it looks like it took 2 integers x and y rather than just 1 integer! What's the meaning of x and y here? I am very confused.
Can someone help me with this?