Is there a reason why a WithIndex() extension method isn't apart of the standard library?

This page summarizes the projects mentioned and recommended in the original post on /r/csharp

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • csharplang

    The official repo for the design of the C# programming language

  • There was a fairly long discussion about this on the csharplang repo. And while the consensus there seems to be that such a method should be added, AFAICT, nobody actually created an issue about this on the runtime repo (which is what needs to happen for this to move forward).

  • .NET Runtime

    .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

  • There was a fairly long discussion about this on the csharplang repo. And while the consensus there seems to be that such a method should be added, AFAICT, nobody actually created an issue about this on the runtime repo (which is what needs to happen for this to move forward).

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • MoreLINQ

    Extensions to LINQ to Objects

  • If you don't already know about it, I highly recommend checking out the MoreLINQ open source project which adds a bunch of these less common but still occasionally useful extensions to LINQ. They also include an Index method which does exactly what your WithIndex method does, yielding out KeyValuePair entries for each iteration.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts