Content deleted Content added
Line 187:
Feldspar, I am not convinced. Please supply better proof. [[User:216.153.214.94|216.153.214.94]] 03:49, 5 Nov 2004 (UTC)
Certainly, a better way to show the operation of the language would be
fac = lambda x: reduce(lambda a,b: a*b, xrange(1, x+1))
<nowiki>;)</nowiki>
For the record, this performs pretty much identically (I timed both with a couple of numbers between 10 and 100000) to
def fac(x):
product = 1
for n in xrange(1, x+1):
product *= n
return product
-- [[User:Fredrik|Fredrik]] | [[User talk:Fredrik|talk]] 04:32, 5 Nov 2004 (UTC)
== Adventurous editing ==
|