3 ms·
You can also write: liftA2 (+) or (+) <$> a <*> b if you have the right type-class instance.
by eru 11y ago
You can also write:
liftA2 (+)
or
(+) <$> a <*> b
if you have the right type-class instance.
- droque 11y agoYou could also go all the way and declare a Num a => Num [a] typeclass, with (+) = zipWith (+).