[Haskell-beginners] Understanding the function monad ((->) r)

Olumide 50295 at web.de
Tue Feb 21 15:52:22 UTC 2017


On 21/02/2017 15:08, Benjamin Edwards wrote:
> The thing that you might also be missing is that function application
> binds tightest. Hopefully the parenthesis that Rahul has added help you
> out there. If not:
>
> \w -> f (h w) w
>
> f will be applied to the result of (h r) which yields another function,
> which is then applied to r

Did you mean to write (h w)?

- Olumide



More information about the Beginners mailing list