Ion Fusion Documentation
Release 0.38a1-SNAPSHOT (2026-04-16T19:45:37.790Z)

Module /fusion/experimental/struct

NOT SUPPORTED

struct_merge1 procedure
(struct_merge1 struct1 struct2)

Functionally merges the mappings of struct1 and struct2, removing repeated fields. Mappings from struct2 will replace those from struct1 with the same key. If there are repeated fields, one is selected arbitrarily. The result has the same type as the first argument.

struct_merge1_m procedure
(struct_merge1_m struct1 struct2)

Merges the mappings of struct1 and struct2, removing repeated fields and mutating the first argument when possible. Mappings from struct2 will replace those from struct1 with the same key. If there are repeated fields, one is selected arbitrarily. The result has the same type as the first argument.