---
title: "+=(_:_:)"
framework: musickit
role: symbol
role_heading: Operator
path: "musickit/musicitemcollection/+=(_:_:)"
---

# +=(_:_:)

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

## Declaration

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

## Discussion

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 to drive a SwiftUI List or ForEach).
