MERGE(2) SYSTEM CALLS MERGE(2) NAME merge - "merges two arrays or mappings into a single mapping SYNOPSIS mixed merge(mixed *arg1, mixed *arg2); DESCRIPTION If arg1 and arg2 are mappings, returns arg1 + arg2. If arg1 and arg2 are arrays, merge returns a mapping for which the elements in arg1 serve as the indexes to the corresponding elements in arg2. In other words, if arg1 is ({ "1", "2" }) and arg2 is ({ "A", "B" }), merge(arg1, arg2) returns ([ "1" : "A", "2" : "B" ]). If arg1 and arg2 are not the same length, the mapping will only be as long as the shorter of the two arrays. If arg1 and arg2 aren't both mappings or both arrays, merge returns zero. AUTHOR Ichabod@TMI, 2/25/93 MudOS Release 0.9 Last change: 3-19-93