Python, Programming, Experiment, Data Structures.
initializing the whole list in a non-lazy manner. Finally, given a Generator, we can always cast it into a plain old non-lazy list by calling list(our_generator), paying the whole initialization cost. A common use of Generators you may have missed One of my awesome readers submitted another way