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. _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
