<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/_(_:_:)-23151",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s1loiySbx_q_q0_t_x_q_q0_ttSLRzSLR_SLR0_r1_lF"
  },
  "title" : "<(_:_:)"
}
-->

# <(_:_:)

Returns a Boolean value indicating whether the first tuple is ordered
before the second in a lexicographical ordering.

```
func < <A, B, C>(lhs: (A, B, C), rhs: (A, B, C)) -> Bool where A : Comparable, B : Comparable, C : Comparable
```

## Parameters

`lhs`

A tuple of `Comparable` elements.

`rhs`

Another tuple of elements of the same type as `lhs`.

## Discussion

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)`).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)