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,655

edits