
17 Jun
2010
17 Jun
'10
3:13 p.m.
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.