product
- PlasmaCalcs.tools.math.product(iterable)
returns the product of all elements in iterable.
if len(iterable) == 0, returns 1.However, if len(iterable) > 0, starts with the first element instead of 1.(This is useful when using non-numeric objects which have defined __mul__ method.)