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)

I think you should have to write negative numbers using the syntax
0-10, since currently having one single unary operator is ugly.

Thanks

Neil
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to