Could you implement the generator pattern? Instead of returning all data at once, return the next one once the next() method is called.
Could you implement the generator pattern? Instead of returning all data at once, return the next one once the next() method is called.