<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicKit",
  "identifier" : "/documentation/MusicKit/MusicItemCollection/+=(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit0A14ItemCollectionV2peoiyyACyxGz_AEtFZ"
  },
  "title" : "+=(_:_:)"
}
-->

# +=(_:_:)

Appends contents of a collection representing a next batch,
in the right hand side, to the existing collection
on the left hand side.

```
static func += (collection: inout MusicItemCollection<MusicItemType>, nextBatchCollection: MusicItemCollection<MusicItemType>)
```

## Discussion

In addition to appending the underlying items of the collection
to the existing collection on the left hand side, this will also
transfer to the collection on the left hand side any information
about a next batch from the collection on the right hand side,
or lack thereof.

This appending operator is particularly useful for aggregating
subsequent batches from a given collection into a local variable
(for example, to use a [`MusicItemCollection`](/documentation/MusicKit/MusicItemCollection) to drive a SwiftUI
<doc://com.apple.documentation/documentation/SwiftUI/List> or
<doc://com.apple.documentation/documentation/SwiftUI/ForEach>).

---

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)