name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name |
slug |
sourceRef |
category |
subCategory |
playUrl |
variantHelpers |
similarHelpers |
position |
signatures |
| Sum |
sum |
math.go#L70 |
core |
math |
https://go.dev/play/p/upfeJVqs4Bt |
|
| core#math#product |
| core#math#mean |
| core#math#sumby |
| core#math#productby |
| core#math#meanby |
| core#find#min |
| core#find#max |
| core#find#minby |
| core#find#maxby |
| core#math#mode |
|
40 |
| func Sum[T constraints.Float | constraints.Integer | constraints.Complex](collection []T) T |
|
Sums the values in a collection. Returns 0 for an empty collection.