- sum(iterable: Iterable<number>, selector?: ((item: number) => number)): number
-
Parameters
-
iterable: Iterable<number>
-
Optional
selector: ((item: number) => number)
-
- (item: number): number
-
Returns number
Returns number
- sum<T>(iterable: Iterable<T>, selector: ((item: T) => number)): number
-
Parameters
-
iterable: Iterable<T>
-
selector: ((item: T) => number)
-
- (item: T): number
-
Returns number
Returns number