why better to return Itterator than array
Posted: Wed Aug 23, 2006 6:03 am
Lets say we make a db query.
Why is it better our method/function to return result object which implments itterator than returning a whole array with the results.
Any pros and cons?
Why is it better our method/function to return result object which implments itterator than returning a whole array with the results.
Any pros and cons?