
22 Dec
2009
22 Dec
'09
2:33 p.m.
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.