Re:Python does support if-else in lambdas...
by tzury on Monday November 10, 2008 @12:25AM
(#358912)
That's the way I write these if..else statements
fib = lambda n: n in [0, 1] and n or fib(n-1) + fib(n - 2)
[ Parent
| on HN ]
There are no comments on this comment yet.