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

Returns a new synchronized set containing elements present in both sets.

Parameters
ParameterDescription
otherElements to test against.
Returns

A new synchronized hash set containing the intersection.

Example
import klyn.collections

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