Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eru
· 10y ago · 0 comments
You can also write:
liftA2 (+)
or
(+) <$> a <*> b
if you have the right type-class instance.
Comments
[–]
droque
10y ago
You could also go all the way and declare a Num a => Num [a] typeclass, with (+) = zipWith (+).