Sets
A Set is a collection of elements that are unique (i.e. that does not contain duplicates). The only way to create a
Set from other types is to use the ipAddressSet function.
The following operations are available on sets.
isEmpty(set): Returns aBoolindicating ifsetcontains no elements.A + B: Returns the union of setsAandB.A - B: Returns the differences of the setsAandB, which contains the elements inAthat are not inB.intersect(set1, set2): Returns the intersection ofset1andset2.ip in setandip not in set: Returns aBoolindicating if theIpAddressipis contained inset. Ifsetevaluates tonull, thenip in setterminates with an error. Ifipevaluates tonull, thenip in setreturnsfalse.subnet in setandsubnet not in set: Returns aBoolindicating if the set ofIpAddresses represented by theIpSubnetsubnetis a subset ofset. Ifsetevaluates tonull, thensubnet in setterminates with an error. Ifsubnetevaluates tonull, thensubnet in setreturnsfalse.subset in supersetandsubset not in superset: Returns aBoolindicating ifsubsetis a subset ofsuperset. Ifsupersetevaluates tonull, thensubset in supersetterminates with an error. Ifsubsetevaluates tonull, thensubset in supersetreturnsfalse.