Version: dev

merge

Stable function · Editing

Tier: stable · Kind: function · Topic: Editing

JuliaTypeScriptPythonRustGo
not exportedmergemerge, merge_esm_filesnot exportedMerge

Note: spelling differs from the §2 rule: python=merge_esm_files (expected merge); multiple spellings exported by: python

Julia

Julia does not export this function.

TypeScript

function merge(fileA: EsmFile, fileB: EsmFile): EsmFile

Merge two ESM files

Parameters

  • fileA — First ESM file
  • fileB — Second ESM file

Returns

New ESM file with merged content

Source

Python

Exported as merge and merge_esm_files. Both names refer to the same operation.

merge

merge(file_a: EsmFile, file_b: EsmFile, validate_after_edit: bool = True) -> EditResult

Merge two ESM files.

Source

merge_esm_files

merge_esm_files(file_a: EsmFile, file_b: EsmFile, validate_after_edit: bool = True) -> EditResult

Deprecated alias for merge . Merge two ESM files.

Source

Rust

Rust does not export this function.

Go

func Merge(a, b ESMFile) ESMFile

Merge returns a new file combining a and b. On a key collision b wins, matching every other binding. Coupling entries are concatenated, a’s first.

The result keeps b’s esm marker and metadata, and b’s domain when it declares one.

Source · Go docs