What is the Ruby <=> (spaceship) operator? Is the operator implemented by any other languages?
<=>
It's a general comparison operator. It returns either a -1, 0, or +1 depending on whether its receiver is less than, equal to, or greater than its argument.