
6 May
2011
6 May
'11
2:57 p.m.
I'm filling a functional itch that Haskell isn't scratching. I'm
looking for a function to take a list of functions, and apply them all
to a value. The signature is obvious :: [a -> b] -> a -> [b], and it's
nearly trivial to write (\fs a -> map ($ a) [fs]), but Haskell has
most useful list functions already provided.
I couldn't turn it up in hoogle or the prelude. Am I just missing it
somewhere, or is it really not available in a library?
Thanks,