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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…