[Haskell-cafe] Re: Very crazy

Aaron Denney wnoise at ofb.net
Tue Sep 25 05:56:30 EDT 2007


On 2007-09-25, Andrew Coppin <andrewcoppin at btinternet.com> wrote:
> BTW, one *extremely* common function that I've never seen mentioned 
> anywhere is this one:
>
>   map2 :: (a -> b) -> [[a]] -> [[b]]
>   map2 f = map (map f)

Because someone would have to think of a name for it, when (map . map)
is likely to be clearer.

-- 
Aaron Denney
-><-



More information about the Haskell-Cafe mailing list