klyn.collections.HashSet.HashSet
constructor
public HashSet(collection as Collection<T>):
Description

Creates a hash set from a collection. Duplicate values are ignored as they are added.

Parameters
  • collection The collection to copy elements from. ```klyn import klyn.collections s = HashSet<Int>([1, 2, 2, 3]) assert s.size == 3 ```