[Haskell-beginners] Selecting Arguments in Function to Feed Map
lorenzo.isella at gmail.com
Mon Sep 13 09:03:26 EDT 2010
Suppose you have the function
f x y z = x*y +z
and that you want to iterate it on a list
x=4 and y=3
then you would do the following
map (f x y) z.
Now consider the case in which the list is given by y e.g.
x=4 and z=3.
How can you iterate f on y (i.e. its second argument) while keeping x
and y fixed?
More information about the Beginners