Would love to have these additions built in! I recreate them too when I need them. The repeated
one has come up a couple times before, plus batched
in a sideways sort of way. Linking those threads for reference:
- [cycle/repeated] Proposal: CollectionType.cycle property for an infinite sequence
- [cycle/repeated again] [Starter Pitch] Introducing a `cycled` method to `Sequence`
- [chunked/batched] What makes a good lazy procedure? And how to do it? - #2 by Ben_Cohen