Re:Functional programming jargon in plain English
by reuben364 on Monday July 04, 2022 @07:44AM
(#31975982)
Single-argument doesn't capture the difference between functor and applicative.
Applies a multi-argument function within a functor. What applicative allows you do is take a product of contexts to a context of products, and lift a value to a context.
This can then be used to make ex1 into a multi-argument function of contexts, which is not the same as (uncurry (+)) being a multi-argument function
[ Parent
| on HN ]
Re:Functional programming jargon in plain English
by mjburgess on Monday July 04, 2022 @08:23AM
(#31976277)
Sure, it's a particular interpretation of `(f a, f b) -> f (a, b)`
(a, b) is an a -> b
(f a, f b) is an f a -> f b
Applicative, over an above this, is really just useful when you have (f a, f b, f c, ..)