• Overview
  • Transcript

2.4 Spaceship Operator (Combined Comparison Operator)

Cool operator; questionable name. The spaceship operator returns one of three values based upon the result of a comparison. It's not something you'll use all the time, but it's extremely useful when sorting.