klyn.collections.HashSet.intersection
method
public intersection(other as HashSet<T>) as HashSet<T>:
Description

Returns a new set containing elements present in both sets.

Parameters
ParameterDescription
otherElements to test against.
Returns

A new hash set containing the intersection.

Example
import klyn.collections

common = {1, 2, 3}.intersection({2, 3, 4})
assert common.size == 2
assert 2 in common