Re:Tom, Dick & Harry
by gsg on Thursday February 07, 2013 @12:07AM
(#5180640)
Of the three solutions, minBy is the only one likely to handle the empty sequence/database case at all gracefully. Returning a fake "zero" is particularly awful.
It probably doesn't matter much since it's a throwaway problem and the database is known not to be empty, but it bugs me.
It probably doesn't matter much since it's a throwaway problem and the database is known not to be empty, but it bugs me.