Hacker News new | ask | show | jobs
by martin_k 5289 days ago
Yes, but I think this is cleared up if you consider that calling a generator function does not execute its body, but return generator object. It doesn't really matter if it's a lambda or a regular named function.