Format
values_product(Alist)
Returns
The product of all associated numbers in Alist, or 1 if no numbers were found
Args
Alist: An associative list or alist
Returns the product of all associated values in this list that are numbers. Other values, including vectors, are not multiplied.
var/list/stuff = list("foo" = 3, "bar" = -4, "banana" = 5)
usr << values_product(stuff) // outputs -60
This is a convenience proc for games trying to eke out high performance.
If Alist is not an associative list or no numbers were found among the associated values, the result is 1.