6 ms·
Or: f <$> f <$> x
by kruipen 10y ago
Or:
f <$> f <$> x
- marcosdumay 10y agoYes. Or even: f x >>= f But I think those operators tend to confuse people that don't know the language, while do notation is very intuitive (although opaque).
- douche 10y agoIs the '<$>' operator called the tank operator? Because it looks like this to me: https://en.wikipedia.org/wiki/Mark_IV_tank https://en.wikipedia.org/wiki/Mark_IV_tank
- marcosdumay 10y agoThe operation is called "map". In Haskell it is the same as the "fmap" function, for historical reasons. By the way, is this the Civilization III armor? I never knew what model they got the image from. It is British... I always expected it to be German for some reason.