<!--
{
  "documentType" : "article",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/UInt/Comparable-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Comparable Implementations"
}
-->

# Comparable Implementations

## Topics

### Operators

[`static func ... (Self) -> PartialRangeThrough<Self>`](/documentation/Swift/UInt/...(_:)-4mm5q)

Returns a partial range up to, and including, its upper bound.

[`static func ... (Self) -> PartialRangeFrom<Self>`](/documentation/Swift/UInt/...(_:)-6ct6a)

Returns a partial range extending upward from a lower bound.

[`static func ... (Self, Self) -> ClosedRange<Self>`](/documentation/Swift/UInt/...(_:_:))

Returns a closed range that contains both of its bounds.

[`static func ..< (Self) -> PartialRangeUpTo<Self>`](/documentation/Swift/UInt/.._(_:))

Returns a partial range up to, but not including, its upper bound.

[`static func ..< (Self, Self) -> Range<Self>`](/documentation/Swift/UInt/.._(_:_:))

Returns a half-open range that contains its lower bound but not its upper
bound.

[`static func > (borrowing Self, borrowing Self) -> Bool`](/documentation/Swift/UInt/_(_:_:)-3izq1)

Returns a Boolean value indicating whether the value of the first argument
is greater than that of the second argument.

[`static func > (UInt, UInt) -> Bool`](/documentation/Swift/UInt/_(_:_:)-4iyb6)

Returns a Boolean value indicating whether the value of the first
argument is greater than that of the second argument.

[`static func < (Self, Self) -> Bool`](/documentation/Swift/UInt/_(_:_:)-fe58)

Returns a Boolean value indicating whether the value of the first
argument is less than that of the second argument.

[`static func <= (borrowing Self, borrowing Self) -> Bool`](/documentation/Swift/UInt/_=(_:_:)-5i1rw)

Returns a Boolean value indicating whether the value of the first argument
is less than or equal to that of the second argument.

[`static func >= (borrowing Self, borrowing Self) -> Bool`](/documentation/Swift/UInt/_=(_:_:)-5nvz8)

Returns a Boolean value indicating whether the value of the first argument
is greater than or equal to that of the second argument.

[`static func <= (UInt, UInt) -> Bool`](/documentation/Swift/UInt/_=(_:_:)-5txp)

Returns a Boolean value indicating whether the value of the first
argument is less than or equal to that of the second argument.

[`static func >= (UInt, UInt) -> Bool`](/documentation/Swift/UInt/_=(_:_:)-9x0o8)

Returns a Boolean value indicating whether the value of the first
argument is greater than or equal to that of the second argument.

---

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)