Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
im3w1l
on Oct 27, 2022
|
parent
|
context
|
favorite
| on:
No safe efficient ways to do three-way string comp...
Not bad but I think python's way - using tuples is cleaner
(x.a, x.b) < (y.a, y.b)
btw you can format as code by indenting two spaces.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: