[Haskell-cafe] Mapping a list of functions

Don Stewart dons at galois.com
Thu Jun 17 15:11:34 EDT 2010

> Hello all
> The standard map function applies a single function to a list of arguments. 
> But what if I want to apply a list of functions to a single argument. I can 
> of course write such a function, but I wonder if there is a standard way of 
> doing this,

    map ($ 2) [(*2), (+1), (^7)]


More information about the Haskell-Cafe mailing list