Synopsis:
product v -- yields the product of the elements in the tally v.
i1 : a = tally{2,2,2,2,2,3,3,3,5,5} |
i2 : product a |
See also:
Code:
-- ../../../Macaulay2-0.9.2/Macaulay2/m2/set.m2:30 product(Tally) := (w) -> product(pairs w, (k,v) -> k^v)