Pythagorean quadruples: Difference between revisions
Content added Content deleted
Line 1,590: | Line 1,590: | ||
'''A non-finite stream of successive powers of two. |
'''A non-finite stream of successive powers of two. |
||
''' |
''' |
||
def double(x): |
|||
return 2 * x |
|||
return iterate(double)(1) |
|||