---
title: wrappedSum()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/simd32/wrappedsum()
---

# wrappedSum()

Returns the sum of the scalars in the vector, computed with wrapping addition.

## Declaration

```swift
func wrappedSum() -> Self.Scalar
```

## Discussion

Discussion Equivalent to indices.reduce(into: 0) { $0 &+= self[$1] }.
