[Haskell-cafe] pointfree-trouble
Felipe Lessa
felipe.lessa at gmail.com
Tue Dec 22 09:33:11 EST 2009
On Tue, Dec 22, 2009 at 12:50:26AM -0800, Kim-Ee Yeoh wrote:
> reMatr :: RealFrac a => ([[a]] -> [[a]]) -> (Matrix a -> Matrix a)
> reMatr f = Matr . f . unMatr -- this idiom occurs a lot, esp. with newtypes
And usually we would call this 'liftMatr' or something along
these lines. The function "lifts" one function from one domain
to another one.
--
Felipe.
More information about the Haskell-Cafe
mailing list