def domap(func, *iterables): """Calls ``func`` using arguments from each of the ``iterables``. Stops when the shortest iterable is exhausted. The results of the calls to ``func`` are not kept. """ consume(map(func, *iterables))
def dostarmap(func, seq): """Apply a ``func`` to arguments taken from tuples in ``seq``.""" consume(itertools.starmap(func, seq))