Anonymous user
Sum and product of an array: Difference between revisions
m
→{{header|GAP}}
(→{{header|Common Lisp}}: add loop example) |
m (→{{header|GAP}}) |
||
Line 615:
Product(v);
# 40320
# 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}}==
|