Ma -> (a -> Mb) -> Mb ... vs ... Ma -> (a -> b) -> b

93 Views Asked by At

I am a newbie to the functional programming world. Is there a reason why in all example I found so far about Monad (or should I say Monoid) is written as:

Ma -> (a -> Mb) -> Mb

instead of

Ma -> (a -> b) -> b