3 ms·
General usage I get. I just don't see the point of using it in this example. Everything else can be explained by 'I wan't my data structures to be immutable and
by scotty79 12y ago
General usage I get. I just don't see the point of using it in this example. Everything else can be explained by 'I wan't my data structures to be immutable and lazy'.
Symbol.iterator just seems like purposeless showing off.
As for your last point, you wouldn't have to invoke in for...of if you returned generator instance, not generator function from your code.
- madeofpalk 12y ago> Symbol.iterator just seems like purposeless showing off. That's the point.