Is there any way to map list items to a function along with arguments?
I have a list:
pages = [p1, p2, p3, p4, p5...]
And I have to call function myFunc corresponding to each list elements along with additional arguments such that the following can be computed
myFunc(p1, additionalArgument)
myFunc(p2, additionalArgument)
and so on…
Is there any elegant method for doing this?
Use a list comprehension: