On Tue, 2007-10-16 at 17:02 +0100, Neil Mitchell wrote: > Hi > > > (/ 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? > > subtract is the way to go. (`subtract` 10)
subtract 10 not (`subtract` 10) (that would be flip subtract 10 which would just be (10 -) > I think you should have to write negative numbers using the syntax > 0-10, since currently having one single unary operator is ugly. I think writing 0-10 is ugly. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe