|
|
|
|
|
by tel
4156 days ago
|
|
gergoerdi covered analysis, but composition is simple. For any two Applicatives F and G and value type A the following 4 values are all Applicative values F A
G A
F (G A)
G (F A)
But for monads only the first two are monads for general monads F and G. So, Applicatives compose better! |
|
In addition to composition, products of Applicatives are also Applicatives:
(F A, G A)