You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 6, 2022. It is now read-only.
I have been inspired by the real-world application of generator (and lazy evaluation in general) using Python, and I hope to bring this benefit to JavaScript. However, only SpiderMonkey and Rhino implements yield, which makes the creation of generator and iterator hard apart from yield.
Fortunately, since JavaScript has closure, then it can be exploited to simulate lazy evaluation through persistence of generator state.