time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (508B)


      1 
      2 {{alias}}( iterator )
      3     Computes the sum of all iterated values.
      4 
      5     For iterators which can generate many values or which may output large
      6     numbers, care should be taken to prevent overflow.
      7 
      8     Parameters
      9     ----------
     10     iterator: Object
     11         Input iterator.
     12 
     13     Returns
     14     -------
     15     out: number|null
     16         Sum.
     17 
     18     Examples
     19     --------
     20     > var arr = {{alias:@stdlib/array/to-iterator}}( [ 1.0, 2.0, 3.0, 4.0 ] );
     21     > var s = {{alias}}( arr )
     22     10.0
     23 
     24     See Also
     25     --------
     26