Product SiteDocumentation Site

5.3.14.5. intersection


>>-intersection(argument)--------------------------------------><

Returns a new collection (of the same class as the receiver) containing only those items from the receiver whose indexes are in both the receiver collection and the argument collection. The argument can be any collection class object. The argument must also allow all of the index values in the receiver collection.