LOTUSSCRIPT LANGUAGE


ArrayUnique function
Removes duplicate elements from an Array.

Note This function is new with Domino Release 6.

Syntax

ArrayUnique(sourceArray [,compMethod ])

Elements

sourceArray


compMethod
Return value

Returns an array with duplicates removed. For any elements of the array which compare equal, the first occurrence is copied into the result array.

Usage

Elements in a variant array will only compare equal if they are of the same type. The variant array can't contain classes or objects.

Array elements that contain the null value will match other null values.

Array elements that are empty will match with other elements that are empty.

Error handling

ArrayUnique throws a Run-time Type mismatch if:


ArrayUnique throws a run-time Wrong Number of Dimensions error if the array is not one-dimensional.

Language cross-reference

@Unique function in formula language

See Also