Stern-Brocot sequence: Difference between revisions
m
→Python: Composing pure (curried) functions
(→Python: Composing pure (curried) functions: Slightly simplified expression of the SB function.) |
|||
Line 3,945:
def sternBrocot():
'''Non-finite list of the Stern-Brocot
sequence of integers.
'''
def go(xs):
[a, b] = xs[:2]
|