[Haskell-cafe] Re: [Haskell-beginners] map question
noteed at gmail.com
Tue Oct 20 02:46:22 EDT 2009
> Not a hack, a solution. A consistent one. Look:
> (`foldl` 0)
> (`-` 2)
> Don't they look exactly the same?
These look the same too (and *are* consistent):
(f a b)
(+ a b)
But it's not Haskell..
IMO conflating binary minus and unary minus is not consistent.
Something I wonder from time to time if it would be a good thing or
not is to allow
a `f g` b
f g a b
(so map (`f g` b) as would legal too).
More information about the Haskell-Cafe