[Haskell-cafe] Strange subtract operator behavior

Peter Verswyvelen bf3 at telenet.be
Tue Oct 16 11:59:17 EDT 2007


(/ 10) means the function that divides its argument by 10
(- 10) however is just the number -10, even if I put a space between the 
- and 10.

How can I create a function that subtracts 10 from its argument in a 
clean way then?

I could use (flip (-) 10) but that looks like a hack.

Thanks,
Peter








-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071016/2a05c52f/attachment.htm


More information about the Haskell-Cafe mailing list