Extending REXX

Distinct function

Usage:

  Result = Distinct ( string1 , string2 )

This function accepts two strings of tokens string1 and string2 and returns a list of tokens that only occur in one of the strings. It is equivalent to an exclusive OR.

Here is an example

   Distinct('cat dog bird reptile','cat fish worm')   -> dog bird reptile fish worm