I used a Select() to perform a calculation on each member of an array of structs and now want to have the member for which a certain attribute is minimal. I wanted to use something like Min() on the selected sequence, but I don’t know how to return the full struct, rather than only the attribute that is minmal.
Share
How about ordering by your ‘value’ and taking the first entry (the minimum value):
That is of course if you only want one item (which is what you state).
Alternatively:
Will get you all items with minimum value.