Operatorswift 6.0.1Swift
<(_:_:)
Returns a Boolean value indicating whether the first tuple is ordered before the second in a lexicographical ordering.
func < <A, B>(lhs: (A, B), rhs: (A, B)) -> Bool where A : Comparable, B : Comparable
Parameters
Given two tuples (a1, a2, ..., aN)
and (b1, b2, ..., bN)
, the first tuple is before the second tuple if and only if a1 < b1
or (a1 == b1
and (a2, ..., aN) < (b2, ..., bN)
).