from functools import reduce
import operator


def product(iterable):
    """
    Given some iterator which allows multiplication, perform a product operation on the iterator.
    """

    return reduce(operator.mul, iterable, 1)