Wondering if someone can give me some direction. I’ve got two functions:
Im not sure how many subscriptions there will be and im trying not to load them all into memory. In php, there is a concept of a generator where you can iteratively return batches of data by using yield instead of return. The code that calls the generator can then just loop over the return value of the function and iteratively perform actions. Is there a nice way to do this in Kotlin? I thought maybe Sequences was the answer, but I may just be missing something.