---
title: Words
framework: swift
role: symbol
role_heading: Associated Type
path: swift/binaryinteger/words-swift.associatedtype
---

# Words

A type that represents the words of a binary integer.

## Declaration

```swift
associatedtype Words : RandomAccessCollection where Self.Words.Element == UInt, Self.Words.Index == Int
```

## Discussion

Discussion The Words type must conform to the RandomAccessCollection protocol with an Element type of UInt and Index type of Int.

## See Also

### Working with Binary Representation

- [bitWidth](swift/binaryinteger/bitwidth.md)
- [trailingZeroBitCount](swift/binaryinteger/trailingzerobitcount.md)
- [words](swift/binaryinteger/words-swift.property.md)
