コード例 #1
0
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))
コード例 #2
0
def dostarmap(func, seq):
    """Apply a ``func`` to arguments taken from tuples in ``seq``."""

    consume(itertools.starmap(func, seq))