INDEX_OR Function

Standard Library function that computes the logical OR for two vectors of positive integers.

Usage

    result = INDEX_OR(array1, array2)

Input Parameters

array1—A vector of positive integers.

array2—A vector of positive integers.

Returned Value

result—A vector consisting of all elements contained in either of the input arrays (result is unique).

Keywords

None.

Examples

The following example demonstrates how to print out the unique integer values found in each matrix.

PM, INDEX_OR([2,0,3],[1,2,0,2])
; PV-WAVE prints:
;    0
;    1
;    2
;    3

See Also

INDEX_AND, WHEREIN