-
Notifications
You must be signed in to change notification settings - Fork 416
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
Subsets(0)
should return an empty set
#645
Labels
Milestone
Comments
Orace
added a commit
to Orace/MoreLINQ
that referenced
this issue
Nov 5, 2019
This was referenced Nov 5, 2019
Open
Thanks for reporting this. Unfortunately, since this is a breaking change and |
atifaziz
changed the title
Bug in Subsets when k = 0
Subsets(0) should return an empty set
Dec 27, 2019
atifaziz
changed the title
Subsets(0) should return an empty set
Oct 20, 2023
Subsets(0)
should return an empty set
julienasp
pushed a commit
to julienasp/MoreLINQ
that referenced
this issue
Nov 14, 2023
This is a squashed merge of PR morelinq#646 that fixes morelinq#645. --------- Co-authored-by: Atif Aziz <code@raboof.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The 0-Subsets of a sequence should be a one item sequence, and this item should be an empty list.
Indeed there is always one subset of length 0 : the empty set.
It returns an empty sequence instead.
A call to
Subsets()
return a sequence that contains an empty list, as expected.The text was updated successfully, but these errors were encountered: