time-to-botec

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

repl.txt (921B)


      1 
      2 {{alias}}( [options] )
      3     Returns an iterator which generates a sequence of composite numbers.
      4 
      5     If an environment supports Symbol.iterator, the returned iterator is
      6     iterable.
      7 
      8     Parameters
      9     ----------
     10     options: Object (optional)
     11         Function options.
     12 
     13     options.iter: integer (optional)
     14         Number of iterations. Default: 1e308.
     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 it = {{alias}}();
     32     > var v = it.next().value
     33     4
     34     > v = it.next().value
     35     6
     36     > v = it.next().value
     37     8
     38 
     39     See Also
     40     --------
     41