time-to-botec

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

repl.txt (1056B)


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