funcky
funcky copied to clipboard
Improve Usability Of `CycleRange` And `RepeatRange` For Already Materialized Sequences
Resolves #740
- [ ] Fix tests
- [ ] Async
Open Questions
- [x] Do we want this at all?
- [x] This is a source breaking change as the return type for
IReadOnlyCollectionis different. Are we OK with this or should I rename the new overloads?
I think we should include this, I think the distinction is useful and avoiding the IBuffer is certainly a good thing for the usage.
As for naming: I went with your first suggestion: {Cycle,Repeat}Materialized. I really like that its succinct and descriptive. It also gives a hint to the .Materialize() method.
Quoting from https://github.com/polyadic/funcky/issues/740#issuecomment-1838034664:
- Repeat/CycleMaterialized
- Repeat/CycleEager(Range, Collection)
- Repeat/CycleInMemory
- Repeat/Cycle