[Haskell-cafe] How to name a mapped function?

Ketil Malde ketil at malde.org
Mon Jun 7 17:25:10 EDT 2010


Martin Drautzburg <Martin.Drautzburg at web.de> writes:

> If I have a function, say "compute" whose last parameter is some value ...
> and I create another function, which applies "compute" to a list of values, 
> how would I call this function?

If I understand you correctly, and it's not simply "map . compute" (which
I'd leave just like that), I would name the function that works on the
full data set (i.e. list) 'compute' and a sub-function working on a
single element 'compute1'.

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list