<filename>idioms_examples/starmap/starmap_not.py<gh_stars>1-10
from itertools import starmap
items = [(1, 7), (2, 8), (3, 9)]
res = map(lambda x: x[0]*x[1], items)
print res # res is an iterator
# [7, 16, 27]

<filename>idioms_examples/starmap/starmap_not.py<gh_stars>1-10
from itertools import starmap
items = [(1, 7), (2, 8), (3, 9)]
res = map(lambda x: x[0]*x[1], items)
print res # res is an iterator
# [7, 16, 27]

# res is an iterator # [7, 16, 27]