[Haskell-cafe] Simplification of this function?
Andrew Wagner
wagner.andrew at gmail.com
Fri Jan 16 10:18:06 EST 2009
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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090116/71c498f9/attachment.htm
More information about the Haskell-Cafe
mailing list