Python's `lambda` functions are seemingly obscure, until they aren't. They're almost mystical, until unveiled. Let's shed some light to dispel the obscurity and lift the mystique.
Excellent as usual! Just for the sake of fun, you definitely *can* program *anything* using just lambdas. They're Turing-complete! Now, whether you should...
This was just fantastic as usual, thanks stephen!
Thanks Zan!
Excellent as usual! Just for the sake of fun, you definitely *can* program *anything* using just lambdas. They're Turing-complete! Now, whether you should...
Ah yes, maybe we should do a fun post of how to abuse `lambda` functions and guarantee zero-readability!
@jjdev would love it for sure
What a great post. Thanks for this 👍. Just the facts.
Thanks James. It’s often glamourised too much!
Excellent post. Congrats
Thank you Carlos
In the context of bytecode optimizations in newer python versions, will a lambda be inlined or is it still a function call?
Good question. I don't knowl I'll try to find out…
https://github.com/brandtbucher/specialist may be of help investigating this
Looks interesting. Will have a look!