morelinq / MoreLINQ

Extensions to LINQ to Objects
https://morelinq.github.io/
Apache License 2.0
3.63k stars 409 forks source link

Permutations on Generic Objects #976

Closed laurinpaech closed 1 year ago

laurinpaech commented 1 year ago

Hi! I was trying to loop over the permutations of a list of objects. The objects are of a custom type, not builtin. It does work but only generates a single permutation and therefore iterates once and then stops. Do they need to implement some function for it to work? I couldn't find anything in the documentation. The same code works when using ints

viceroypenguin commented 1 year ago

Would you please share an example that demonstrates the problem? I attempted to replicate with custom objects and behavior matched for both int and the custom object.