time-to-botec

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

repl.txt (970B)


      1 
      2 {{alias}}( iterator )
      3     Returns an iterator which iteratively computes a cumulative sum of absolute
      4     values.
      5 
      6     If an environment supports Symbol.iterator, the returned iterator is
      7     iterable.
      8 
      9     Parameters
     10     ----------
     11     iterator: Object
     12         Input iterator.
     13 
     14     Returns
     15     -------
     16     iterator: Object
     17         Iterator.
     18 
     19     iterator.next(): Function
     20         Returns an iterator protocol-compliant object containing the next
     21         iterated value (if one exists) and a boolean flag indicating whether the
     22         iterator is finished.
     23 
     24     iterator.return( [value] ): Function
     25         Finishes an iterator and returns a provided value.
     26 
     27     Examples
     28     --------
     29     > var arr = {{alias:@stdlib/array/to-iterator}}( [ 2.0, -5.0, 3.0, 5.0 ] );
     30     > var it = {{alias}}( arr );
     31     > var s = it.next().value
     32     2.0
     33     > s = it.next().value
     34     7.0
     35     > s = it.next().value
     36     10.0
     37     > s = it.next().value
     38     15.0
     39 
     40     See Also
     41     --------
     42