Hacker News new | ask | show | jobs
by andreasvc 5115 days ago
But there's a good motivation here: (x)range objects are supposed to be index-able, while a generator (expression) cannot go back once an element has been consumed.