[Haskell-cafe] pointfree-trouble

Felipe Lessa felipe.lessa at gmail.com
Tue Dec 22 09:34:34 EST 2009


On Tue, Dec 22, 2009 at 09:27:47AM -0500, Keith Sheppard wrote:
> Hello, I didn't try to understand what the function is doing, but just
> quickly noticed that
>
> > reMatr a = Matr . (flip (.) unMatr) a
>
> can be written as
> > reMatr a = Matr . ((flip (.) unMatr) a)

...and then

> reMatr a = (Matr .) ((flip (.) unMatr) a)
> reMatr a = (Matr .) $ (flip (.) unMatr) a
> reMatr = (Matr .) . (flip (.) unMatr)

--
Felipe.


More information about the Haskell-Cafe mailing list