time-to-botec

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

repl.txt (968B)


      1 
      2 {{alias}}( iterator )
      3     Returns an iterator which computes the sine of each iterated value times π.
      4 
      5     Computes sin(πx) more accurately than sin(pi*x), especially for large x.
      6 
      7     If an environment supports Symbol.iterator and a provided iterator is
      8     iterable, the returned iterator is iterable.
      9 
     10     Parameters
     11     ----------
     12     iterator: Object
     13         Input iterator.
     14 
     15     Returns
     16     -------
     17     iterator: Object
     18         Iterator.
     19 
     20     iterator.next(): Function
     21         Returns an iterator protocol-compliant object containing the next
     22         iterated value (if one exists) and a boolean flag indicating whether the
     23         iterator is finished.
     24 
     25     iterator.return( [value] ): Function
     26         Finishes an iterator and returns a provided value.
     27 
     28     Examples
     29     --------
     30     > var it = {{alias}}( {{alias:@stdlib/random/iter/randu}}() );
     31     > var r = it.next().value
     32     <number>
     33     > r = it.next().value
     34     <number>
     35 
     36     See Also
     37     --------
     38