Advantages of iterators and generators