---
title: "<(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/_(_:_:)-8mgtp"
---

# <(_:_:)

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

## Declaration

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

## Parameters

- `lhs`: A tuple of Comparable elements.
- `rhs`: Another tuple of elements of the same type as lhs.

## Discussion

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

## See Also

### Tuple Comparison

- [<(_:_:)](swift/_(_:_:)-1b1cu.md)
- [<(_:_:)](swift/_(_:_:)-4ck5h.md)
- [<(_:_:)](swift/_(_:_:)-23151.md)
- [<(_:_:)](swift/_(_:_:)-6p1tf.md)
- [<(_:_:)](swift/_(_:_:)-3hhjy.md)
- [<=(_:_:)](swift/_=(_:_:)-16p1e.md)
- [<=(_:_:)](swift/_=(_:_:)-3jpod.md)
- [<=(_:_:)](swift/_=(_:_:)-8u5uu.md)
- [<=(_:_:)](swift/_=(_:_:)-6kea2.md)
- [<=(_:_:)](swift/_=(_:_:)-1hzxz.md)
- [<=(_:_:)](swift/_=(_:_:)-7n746.md)
- [>(_:_:)](swift/_(_:_:)-yktb.md)
- [>(_:_:)](swift/_(_:_:)-4xg09.md)
- [>(_:_:)](swift/_(_:_:)-7p512.md)
- [>(_:_:)](swift/_(_:_:)-5gb41.md)
