---
title: "&(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/uint/&(_:_:)"
---

# &(_:_:)

Returns the result of performing a bitwise AND operation on the two given values.

## Declaration

```swift
static func & (lhs: UInt, rhs: UInt) -> UInt
```

## Parameters

- `lhs`: An integer value.
- `rhs`: Another integer value.

## Discussion

Discussion A bitwise AND operation results in a value that has each bit set to 1 where both of its arguments have that bit set to 1. For example: let x: UInt8 = 5          // 0b00000101 let y: UInt8 = 14         // 0b00001110 let z = x & y             // 0b00000100 // z == 4
