<!--
{
  "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/SIMDMask/.&(_:_:)-8pp6f",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s8SIMDMaskVss5SIMD8VySiGRszrlE2zaoiyAByAEGAG_AGtFZ"
  },
  "title" : ".&(_:_:)"
}
-->

# .&(_:_:)

A vector mask that is the pointwise logical conjunction of the inputs.

```
static func .& (a: SIMDMask<Storage>, b: SIMDMask<Storage>) -> SIMDMask<Storage>
```

## Discussion

Equivalent to:

```
var result = SIMDMask<SIMD8<Int>>()
for i in result.indices {
  result[i] = a[i] && b[i]
}
```

Note that unlike the scalar `&&` operator, the SIMD `.&` operator
always fully evaluates both arguments.

---

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)