<!--
{
  "availability" : [
    "iOS: 12.2.0 -",
    "iPadOS: 12.2.0 -",
    "macCatalyst: 12.2.0 -",
    "macOS: 10.14.4 -",
    "tvOS: 12.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/OutputSpan/append(repeating:count:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s10OutputSpanV6append9repeating5countyx_SitF"
  },
  "title" : "append(repeating:count:)"
}
-->

# append(repeating:count:)

Repeatedly append an element to this span.

```
mutating func append(repeating repeatedValue: Element, count: Int)
```

## Parameters

`repeatedValue`

The element to append repeatedly.

`count`

The number of times to append `repeatedValue`.
`count` must not exceed `freeCapacity`.

---

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)