The first is a function from A to a (a function from B to C). The second is a function from (functions from A to B) to C. The first "takes two arguments" the second "takes one argument". The first is a normal function, the second is a "higher order function".
0
votes
Here are two example functions with your types that will help you figure out how these are different:
valatzero :: Num a => (a -> t) -> t
valatzero f = f 0
plus :: Num a => a -> a -> a
plus x y = x + y
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more