company logo

INTERSECT keyword

Keywords:  intersect method

The keyword can be written in capital or small letters, but not mixed. The keyword requires a list of parameters (at least one), where each parameter defines a collection for building the intersection. The operation intersects the calling collection with a list of passed collections. When being used without calling collection, the operation intersects all passed collections.

Calling Intersect like

A.intersect(B)

intersects A with B and stores the result in A. Calling Intersect, however, as

Intersect(A,B)

creates a new collection containing the intersection of A and B.