Generator/Exponential: Difference between revisions

m
→‎{{header|REXX}}: changed wording of "so many values" ==> "a specified number of values". -- ~~~~
m (→‎{{header|REXX}}: changed wording of "so many values" ==> "a specified number of values". -- ~~~~)
Line 1,416:
 
=={{header|REXX}}==
Code was added to support listing of soa manyspecified number of values, the default is 0 (zero).
<br>The generators lie dormant until a request is made (illustrated by the calling of "TELL" to display some values).
<br>A lot of unnecessary iterator calls could be eliminated (and making the program a lot faster) if a check would be made to determine if a value has been emitted.
<br>The REXX program can handle any numbers, not just positive integers; one only need to increase the size of the DIGITS if more digits are needed for extra-large numbers.
<lang rexx>
/*REXX program to show how to use a generator (also known as iterators).*/