Anonymous user
Ethiopian multiplication: Difference between revisions
m
→{{header|Python}}: No more list comprehension :(
m (→{{header|Python}}: Simplify) |
m (→{{header|Python}}: No more list comprehension :() |
||
Line 2,388:
return result</lang>
An example showing Python's functional programming capabilities using lambdas, iterate (not in the standard library but easy to define using a generator), takewhile, izip
<lang python>from itertools import izip, takewhile
|