Sometimes, I just want to execute a function for a list of entries -- eg.:
for x in wowList:
installWow(x, \'installed by me\')
Sometime
You could make your own "each" function:
def each(fn, items):
for item in items:
fn(item)
# called thus
each(lambda x: installWow(x, 'installed by me'), wowList)
Basically it's just map, but without the results being returned. By using a function you'll ensure that the "item" variable doesn't leak into the current scope.