<!--
{
  "availability" : [
    "*: -",
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Assignables",
  "identifier" : "/documentation/Assignables/AssignableDocument/merge(other:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Assignables"
    ],
    "preciseIdentifier" : "s:11Assignables18AssignableDocumentV5merge5otherSbAC_tKF"
  },
  "title" : "merge(other:)"
}
-->

# merge(other:)

Merge another object of this type into this object.

```
@discardableResult mutating func merge(other: AssignableDocument) throws -> Bool
```

## Parameters

`other`

The other object to merge into this one.

## Discussion

An exception is thrown if `other` is not a replica of this document.

---

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)