[Haskell-cafe] Map list of functions over a single argument

Donald Bruce Stewart dons at cse.unsw.edu.au
Tue Feb 20 09:10:31 EST 2007


p.f.moore:
> I'm after a function, sort of equivalent to map, but rather than
> mapping a function over a list of arguments, I want to map a list of
> functions over the same argument. The signature would be [a -> b] -> a
> -> [b], but hoogle didn't come up with anything.

Prelude> map ($ 3) [(*2),(+1),div 1]
[6,4,0]


More information about the Haskell-Cafe mailing list