[Haskell-cafe] Re: Haskell-Cafe Digest, Vol 28, Issue 66
Daniel Carrera
daniel.carrera at zmsl.com
Tue Dec 20 16:12:51 EST 2005
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.
/
More information about the Haskell-Cafe
mailing list