public abstract close() as Void
Terminates iteration and executes active resource/finally cleanups once. Closing an unstarted generator does not execute its body. Repeated closes have no effect. Cleanup exceptions propagate to the caller.
try values = range(10): print(values.next())