Data update

This commit is contained in:
Ingy döt Net 2026-02-01 16:33:20 -08:00
parent 5150844a7d
commit 4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions

View file

@ -1,11 +1,11 @@
from itertools import islice
def fib():
yield 0
"""Yield fib[n+1] + fib[n]"""
yield 1
a, b = fib(), fib()
next(b)
lhs, rhs = fib(), fib()
# move lhs one iteration ahead
yield next(lhs)
while True:
yield next(a)+next(b)
yield next(lhs)+next(rhs)
print(tuple(islice(fib(), 10)))
f=fib()
print [next(f) for _ in range(9)]