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

Stefan Monnier monnier at iro.umontreal.ca
Thu Aug 17 11:18:59 EDT 2006


> I'd have thought it would have been simpler to just make the rule that -2 
> (no spaces between '-' and '2') would be a single lexeme,

But then x-2 won't mean "subtract 2 from x" but "call x with arg -2".


        Stefan



More information about the Haskell-Cafe mailing list