Orace

Results 78 comments of Orace

With a custom de-constructible `HomogeneityResult` you can just write: > > ```cs > // assume: > // using static HomogeneityType; > > var moves = from e in enumerators select...

> Does this PR is similar to this [other one](https://github.com/morelinq/MoreLINQ/issues/266)? For the 'all items equal' part yes, but this proposed method also return the actual value (in the case of...

In your proposition, the projected value type is limited to `bool`. I propose a more generalized `Map` method : ```C# public static IEnumerable Map(this IEnumerable source, Func func); ``` _I...

Actually `Map` doesn't exist in MoreLinq or I can't find it. I neither can't find a method that do what I propose for Map. It's generic and work with your...

> > every penny counts > > What are the pennies we are measuring or talking about here? [Chocolate ones](https://www.google.com/search?q=chocolate+penny&tbm=isch) ;)

> Out of curiosity, what does this add compared to the existing `Interleave` operation, other than an exception with imbalanced sequences? > > Wouldn't it be more elegant to make...

To manage multiple enumerations. - should we rebuild the full sequence ? - Should we store it ? - Should we forget it when all active `IEnumerator` are disposed ?

For rank, since all the data are enumerated anyway, and a dictionary of size N is created. We allocate at least 3xN in memory. Based on [this](https://stackoverflow.com/questions/1964234/sorting-an-array-related-to-another-array) see [msdoc](https://docs.microsoft.com/fr-fr/dotnet/api/system.array.sort?view=netframework-4.8#System_Array_Sort_System_Array_System_Array_System_Collections_IComparer_) we...

I would like to avoid the 1-based status access. My first thought about the predicate was something like that: ```C# var usersAndEmail = users.ZipWhile(emails, aliveSources => aliveSources .Contains(users)); ``` But...

Alas, at the moment, I don't have time to work on this. You are free to take the code present on [codepen](https://codepen.io/Oracetonick/pen/qBYdwaN) under the MIT license as long as my...