Skip to content
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

SelectWithIndex (or something similar) #29

Closed
GoogleCodeExporter opened this issue Jul 24, 2015 · 3 comments
Closed

SelectWithIndex (or something similar) #29

GoogleCodeExporter opened this issue Jul 24, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

I've seen a number of questions like this one: 
http://stackoverflow.com/questions/1593235/linq-to-xml-dictionary-conversion

Where the overload for Select taking a `Func<TSource,int,TResult>` is 
basically used to create key/value pairs. We should make this easier with a 
single method call - either using KeyValuePair or a new IndexValuePair 
struct.

Original issue reported on code.google.com by jonathan.skeet on 20 Oct 2009 at 8:52

@GoogleCodeExporter
Copy link
Author

SelectWithIndex is, IMO, the existing overload of Select.
What he was asking sounds to me to be an overload of ToDictionary where the Key 
selector includes an index parameter.

Original comment by tormod.s...@gmail.com on 16 Jun 2012 at 11:37

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision 07ebb1349a1d
The operator is simply called Index.

Original comment by azizatif on 16 Jun 2012 at 4:28

  • Changed state: Fixed
  • Added labels: Milestone-Release1.0

@GoogleCodeExporter
Copy link
Author

Original comment by azizatif on 16 Jun 2012 at 4:29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant