3 ms·
longestName = maximumBy . comparing $ \(f,l) -> length $ f++l
by nicklovescode 15y ago
longestName = maximumBy . comparing $ \(f,l) -> length $ f++l
- eru 15y agoThat doesn't fit the bill. He was looking for comparison on a structure that holds more than just the name. (Though the right answer is very similar to what you've written.)