Spaceship Operator

Xcode 8.0, Swift 3, OSX 10.11 The following is a good example of creating your own operators. In the two years since first writing this, I have not found an actual use for this, but it appears to be a common operator in Ruby, and has been implemented several times in Swift. My example code […]