First page Back Continue Last page Overview Image

starmap

starmap(function, sequence) --> starmap object

The method starmap returns an iterator whose values are returned from the function evaluated with a argument tuple taken from the given sequence.

def starmap(function, iterable):

for args in iterable:

yield function(*args)

print(list(starmap(pow, [(2,5), (3,2), (10,3)])))

returns:

[32, 9, 1000]