addAll

Synopsis

@ addAll(@a, @b)

Adds all of the non-present elements of @b into @a. Essentially this function computes the union of @ and @b.

Parameters

@a - the first array.

@b - the second array.

Scalar identity is used to determine scalar equivalence for this function. the identity algorithm compares references for object scalars and function scalars. The string representation is used to compare other scalars.

Returns

The array @a

Side Effects / Notes

Examples

@a = @("a", "b", "c", "x", "y", "z"); @b = @("c", "d", "e", "f"); addAll(@a, @b); println("@a is: " . @a);

@a is: @('a', 'b', 'c', 'x', 'y', 'z', 'd', 'e', 'f')

See Also