Our great sponsors
-
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.
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).
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).
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.