Sum and product of an array: Difference between revisions

m
(→‎{{header|Common Lisp}}: add loop example)
Line 615:
 
Product(v);
# 40320</lang>
 
# You can sum or multiply the result of a function
 
Sum(v, n -> n^2);
# 204
 
Product(v, n -> 1/n);
# 1/40320</lang>
 
=={{header|Go}}==
Anonymous user