Hacker News new | ask | show | jobs
by CHY872 4036 days ago
There is zero need for a general purpose List.last. It encourages programming using List.last, when in most cases that leads to crap performance (as it would run in O(n) time).

It's a one line function to write, but it certainly has no business being in the standard library.