1.0.6 • Published 6 years ago

@kingjs/linq.sum v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

@kingjs/linq.sum

Computes the sum of a sequence of numbers projected from elements of a sequence.

Usage

Sum 1, 2, and 3 like this:

var sum = require('@kingjs/linq.sum');
var sequence = require('@kingjs/enumerable.create');

var summation = sum.call(sequence(1, 2, 3));

result:

6

API

declare function sum(
  this: Enumerable
): number;

Interfaces

Parameters

  • this: The sequence to sum.

Return Value

The summation of the sequence.

Install

With npm installed, run

$ npm install @kingjs/linq.sum

Acknowledgments

Like Element.Sum.

License

MIT

Analytics

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago