The lazy answer is making a chunk for all of the data. Then it is just keeping the chunk as an argument of a function, for recursion. And updating the chunk on each loop, for iteration.
CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.