Hi guys, I was wondering how I should learn about functional programming. Do you guys have any recommendations? A good book perhaps? Course? How do I start? Should I study Category Theory first? Thank you very much
May i ask another question? When exactly would i ever need to use an Applicative? Ot seems to me that I could use Monad over applicative.
07/11/2020, 9:27 AM
A Monad is also an Applicative, plus extras
Reasons to use Applicative are
You usually want to use the least powerful abstractions that do the job
Applicatives compose (always) Monads don't (this is a more complicated topic)
A good example is Validated, which is the same as Either but does have a Monad instance (only Applicative) so it can accumulate errors