Closed GoogleCodeExporter closed 9 years ago
MoreLINQ already has Index[1], which can be coupled with Where to the same
effect:
sequence.Index().Where(e => Equals(e.Value, item)).Select(e => e.Key)
It even reads like the potential generalization “IndexesWhere” you suggest.
[1]
https://code.google.com/p/morelinq/source/browse/MoreLinq/Index.cs?name=1.0&r=9e
a817b7a5aa0983230979259523e663d356e04f
Original comment by azizatif
on 22 Jul 2013 at 8:37
Hm, for some reason I thought Index had a dictionary result (and thus was way
more expensive in several ways). Nevermind then.
Original comment by craig.gi...@gmail.com
on 22 Jul 2013 at 9:03
Original issue reported on code.google.com by
craig.gi...@gmail.com
on 22 Jul 2013 at 8:04