New course! Every coder should learn Generative AI!
Try a free lesson+ 1
It's called the spaceship operator.
a <=> b :=
if a < b then return -1
if a == b then return 0
if a > b then return 1
if a and b are not comparable then return nil
https://stackoverflow.com/questions/827649/#827656