Hacker News new | ask | show | jobs
by 5d8767c68926 1355 days ago
>... This has the added benefit of sorting the values as well

I don't think you can rely on this? Happy to be proven wrong, but set does not guarantee iteration order. There may be a distinction if all elements are available at set construction, but that seems like a fiddly rule I would rather avoid.