"merge"

This function merges two mappings.

Synopsis

int mapping.merge(mapping other);

Parameters

Parameter Description
other Mapping to be merged.

Description

The function merges the present mapping with the mapping given as a parameter.

Example

Merging mappings "map" and "other".

main()
{
  mapping map = makeMapping("one", 1);
  mapping other = makeMapping("two", 2);
  map.merge(other);
  DebugN(map);
}

As a result the mapping "map" will then contain the key/value pairs of both:

WCCOAui1:[mapping 2 items
WCCOAui1:   "two" : 2
WCCOAui1:   "one" : 1
WCCOAui1:]

Assignment

Mapping