Let’s say I have a list of Foo
objects, each of which has a parameter called bar
containing a float, and I want to be able to find the object with the lowest value of bar
. Is there an elegant or built-in way of doing this other than manually using a for-each loop?
submitted by /u/AgreeableLandscape3
[link] [comments]