Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nicklovescode
on Feb 21, 2012
|
parent
|
context
|
favorite
| on:
Learn from Haskell - Functional, Reusable JavaScri...
longestName = maximumBy . comparing $ \(f,l) -> length $ f++l
eru
on Feb 21, 2012
[–]
That 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.)
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: