Product SiteDocumentation Site

5.3.14.9. union


>>-union(argument)---------------------------------------------><

Returns a new Set contains all the items from the receiver collection and selected items from the argument collection. This method includes an item from argument in the new collection only if there is no item already in the in the receiver collection and the method has not already included a matching item. The order in which this method selects items in argument is unspecified. The argument can be any collection class object. The argument must also allow all of the index values in the receiver collection.