Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All possible combinations of N size #366

Open
Kareltje1980 opened this issue Jan 18, 2018 · 4 comments
Open

All possible combinations of N size #366

Kareltje1980 opened this issue Jan 18, 2018 · 4 comments

Comments

@Kareltje1980
Copy link

I actually downloaded morelinq for this, but found it did not include this.

Solution and example:
https://stackoverflow.com/questions/33336540/how-to-use-linq-to-find-all-combinations-of-n-items-from-a-set-of-numbers

@atifaziz
Copy link
Member

Best would be to nudge user109260 on stackoverflow.com to contribute here with tests.

@atifaziz atifaziz changed the title Suggestion: Add All PossibleCombinations of N Size All possible combinations of N size Jan 19, 2018
@kcragin
Copy link

kcragin commented Jul 13, 2018

It would be useful to do this for permutations. Perhaps the methods are Combine and Permute with any overloads.

@Orace Orace mentioned this issue Nov 5, 2019
@V0ldek
Copy link

V0ldek commented May 7, 2021

@atifaziz Is this issue dead? I actually implemented this and a version with permutations only by hand and would gladly switch to a solid MoreLINQ implementation, or contribute my implementation here, but it seems there is a PR already only that it's stale.

@atifaziz
Copy link
Member

atifaziz commented May 7, 2021

@V0ldek If you're talking about PR #647, it's not stale. It's blocked on bug fix for #645 that won't ship until the next major version where we can afford breaking changes. That said, there's nothing stopping from making the fix internal that later exposed through Subsets(0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants