Considering that this is a very basic task, I could not think of an appropriately easy way to do it. How would you get the index of the lowest value in an int array? Using Linq/MoreLinq is possible. I could not find a reasonable one-liner so far.
Share
Since you mention MoreLinq, how about:
Another alternative:
You could of course write your own extension-method:
With some effort, you can generalize this to any type by accepting an
IComparer<T>, defaulting toComparer<T>.Default.