Hacker News new | ask | show | jobs
by kruipen 3621 days ago
Or:

    f <$> f <$> x
2 comments

Yes. 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).
Is the '<$>' operator called the tank operator? Because it looks like this to me: https://en.wikipedia.org/wiki/Mark_IV_tank
The 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.