in reply to Re: How To: Make An Iterator
in thread How To: Make An Iterator
Anonymous Monk,
No, that isn't a better approach. If your iterator is designed to return a list each iteration and an empty list is valid then you will prematurely terminate.
No, that isn't a better approach. If your iterator is designed to return a list each iteration and an empty list is valid then you will prematurely terminate.
I stand by my statements though I will concede that it would be fair to say that an empty list is usually safe.
Cheers - L~R
In Section
Tutorials