Is there an idiomatic Haskell?
Haskell Community [Unofficial]
May 11, 2026
tobz619:
fmapis one of the most useful functions ever.
but avoid with tuples unless golfing:
λ> fmap (const 9) (1,2)
(1,9)
λ> fmap (const 9) (1,2,3)
(1,2,9)
Discussion in the ATmosphere