Padovan n-step number sequences: Difference between revisions
m
→Python: Functional
Line 1,088:
'''
def go(xs):
return h, t + [sum(take(n)(xs))]
return go
|