Hacker News new | ask | show | jobs
by kccqzy 1517 days ago
A collection is non-empty if and only if it has a first element. Therefore checking for non-emptiness is the same as checking for the existence of a first element.