[Haskell-cafe] Mapping a list of functions

Andrew Coppin andrewcoppin at btinternet.com
Thu Jun 17 15:13:20 EDT 2010

Martin Drautzburg wrote:
> 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,

The magical incantation you seek is "map ($ x) [fn1, fn2, fn3]". 
Remember that "$" is a function like any other, and can be curried.

More information about the Haskell-Cafe mailing list