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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: How To: Make An Iterator
by Anonymous Monk on Apr 20, 2006 at 00:09 UTC | |
by Limbic~Region (Chancellor) on Apr 20, 2006 at 12:24 UTC |
In Section
Tutorials