Generator/Exponential: Difference between revisions

m
dropped the use of numbered bullets (because of indented bullets, they were incorrectly (re-)numbered ineffectlively, add whitespace to the task's preamble.
m (added a ;Task: section header, added whitespace to the task's preamble, added whitespace before the table-of-contents (TOC).)
m (dropped the use of numbered bullets (because of indented bullets, they were incorrectly (re-)numbered ineffectlively, add whitespace to the task's preamble.)
Line 12:
 
;Task:
#* Create a function that returns a generation of the m'th powers of the positive integers starting from zero, in order, and without obvious or simple upper limit. (Any upper limit to the generator should not be stated in the source but should be down to factors such as the languages natural integer size limit or computational time/size).
#* Use it to create a generator of:
:#::*   Squares.
:#::*   Cubes.
#* Create a new generator that filters all cubes from the generator of squares.
#* Drop the first 20 values from this last generator of filtered results, and then show the next 10 values.
 
 
Note that this task ''requires'' the use of generators in the calculation of the result.
 
 
'''See also'''
;Also see:
* [[wp:Generator (computer_science)|Generator]]
<br><br>