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.
'''
'''
return iterate(lambda x: 2 * x)(1)
def double(x):
return 2 * x

return iterate(double)(1)