Scherrer, Chad wrote:
Have you used Haskell's infix notation? It can help keep the order
straight for operators like these. You can write

a `mod` b  -- instead of mod a b
a `divides` b -- instead of divides a b.

This can help with readability, too.

No, I haven't. That's neat, very neat. Thanks for the tip.

I just tried it, and all these are valid:

(a `divides`) b
(`divides` b) a

That's neat because then you can make derived functions and compositions and all sorts of neat stuff.

Cheers,
Daniel
--
     /\/`) http://oooauthors.org
    /\/_/  http://opendocumentfellowship.org
   /\/_/
   \/_/    I am not over-weight, I am under-tall.
   /
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to