[Haskell-cafe] Re: Simplification of this function?
Ertugrul Soeylemez
es at ertes.de
Sat Jan 17 00:45:14 EST 2009
"Andrew Wagner" <wagner.andrew at gmail.com> wrote:
> I've been playing around with this, but haven't been able to come up
> with anything.
> myFunc f (a,b) (c,d) = (f a c, f b d)
>
> It feels as if there should be a nice simple version of this using
> some combination of {un,}curry, "on", &&&, ***, or something else.
>
> Any thoughts?
Yes: Points-free style can quickly become pointless style, if you
overuse it. IMO there is nothing wrong with the above definition. It's
perfectly clear and concise.
Greets,
Ertugrul.
--
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://blog.ertes.de/
More information about the Haskell-Cafe
mailing list