I was reading the Swift docs, trying to understand tuples. The docs have this block:
(3, "apple") < (3, "bird") // true because 3 is equal to 3, and "apple" is less than "bird"
How does this make sense? What is Swift comparing to conclude that “apple” is less than “bird”? Shouldn’t this evaluate to false
, because 3 is not less than 3?
1