4 ms·
My python teacher asked us an implementation of the factorial function. I did almost the same as you, bootstrapping almost every constructs in python lambdas,
by s3m4j 8y ago
My python teacher asked us an implementation of the factorial function.
I did almost the same as you, bootstrapping almost every constructs in python lambdas, and then, before handing it to him, I put it all on one line.
But I'm a good person, in a comment above that line, I copy pasted the same line with 'lambda' replaced by 'λ'.
(I did not use church numerals and there were no strings involved)