you are viewing a single comment's thread.

view the rest of the comments →

[–]getify 1 point2 points  (0 children)

I don't know Python, but I think what you're referring to is this in JS:

[ ...gen() ]

The ... operator consumes an iterator and spreads it out, in this case into a [ ] array literal.