Skip to content

Returning empty IEnumerable should include skipping the same number of elements source has, not just less than it. #11155

Open
@afpirimoglu

Description

@afpirimoglu

Type of issue

Typo

Description

"If source contains fewer than count elements, an empty IEnumerable is returned." should be changed to "If source contains fewer than or equal to count elements, an empty IEnumerable is returned". Because if source had count number of elements and count of them are skipped, the remaining is empty IEnumerable.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.skip?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Linq/Enumerable.xml

Document Version Independent Id

a67e52ea-8921-5d7f-d316-eecab80668af

Platform Id

7e01664c-988a-740a-0cea-13ed236ce98b

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions