Jump to content

Pascal's triangle: Difference between revisions

m
→‎Functional Python: docstring edit
m (→‎Functional Python: docstring edit)
Line 4,125:
def nextPascal(xs):
'''A row of Pascal's triangle
derived from thea previouspreceding row.'''
return zipWith(add)([0] + xs)(xs + [0])
 
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.