XOR-LISTS

Returns a list comprising values contained only once in all the lists referenced. A value contained more than once in a list will not be returned.

Syntax

XOR-LISTS list-name list-name {list-name}...

Syntax Elements

list-name is the name of a saved list.

Comments

Uniqueness of values in a source list can be guaranteed by sorting the list with the SORT-LIST command and specifying the U option.

Examples

:XOR-LISTS FIREALRM FIRESPKLR
9 Items selected.
>SAVE-LIST PHONECALL
[241] 'PHONECALL' Cataloged.

All values that appeared only once in both lists FIREALRM and FIRESPKLR are now in list PHONECALL.

:XOR-LISTS SMKR DRNK OVFF OVWT
7899 Items selected.
>SAVE-LIST ADVISE
[241] 'ADVISE' Cataloged.

The list in ADVISE contains all values that appeared only once in all the lists referenced in the XOR-LISTS command.

Go to top button