[Haskell-cafe] map (-2) [1..5]

Tamas K Papp tpapp at Princeton.EDU
Thu Aug 17 04:43:34 EDT 2006


The code in the subject generates an error.  I understand why this is
(- is treated as part of the number), but I don't know how to solve
it, ie how to tell Haskell that - is a function/binary operator?

Thanks,

Tamas


More information about the Haskell-Cafe mailing list