8000 `Subsets(0)` should return an empty set · Issue #645 · morelinq/MoreLINQ · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Subsets(0) should return an empty set #645
Closed
@Orace

Description

@Orace

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.

  Enumerable.Range(1, 4).Subsets(0);  // [] instead of [[]]

It returns an empty sequence instead.

A call to Subsets() return a sequence that contains an empty list, as expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No bran 2B44 ches or pull requests

    Issue actions

      0