Hacker News new | past | comments | ask | show | jobs | submit login

Perl and C++ use the <=> "spaceship" operator for that. Cmp for strings in Perl.





Applications are open for YC Summer 2020

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: