polyadic / funcky

Funcky is a Functional Library for C#
https://polyadic.github.io/funcky
Apache License 2.0
19 stars 3 forks source link

Usability of `CycleRange` and `RepeatRange` #740

Open bash opened 1 year ago

bash commented 1 year ago

CycleRange returns an IBuffer which brings with it the need to dispose the result which is not very practical.

I think we should add an overload for readonly lists that returns a regular old IEnumerable (that's easy because the list is already materialized).

We can either add an overload of the existing CycleRange (that's a source breaking change though). Alternatively we can use a new name (e.g. CycleList).

FreeApophis commented 10 months ago

I think the names should be different, and I think List is the best name for this kind of abstraction:

alternative suggestions, I list stupid ideas too, to make us think one more time:

We could mark this feature as Experimental as long as we are not sure about the name.