In message <dvukp7-7sa....@satorlaser.homedns.org>, Ulrich Eckhardt wrote:

> Geobird wrote:
>
>> def fact(x):
>>     return x > 1 and x * fact(x - 1) or 1
> 
> I'd say this is about as small as it gets.

    fact = lambda x : x > 1 and x * fact(x - 1) or 1

-- 
Lawrence “Functionalism Strikes Again” D’Oliveiro
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to