public interface Set<T> extends Collection<T>:
s = HashSet<Int>() s.add(10) s.add(10) assert s.size == 1 assert 10 in s
| Modifier and Type | Member | Description |
|---|---|---|
| public | count | Counts occurrences of the given element in the set. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | operator in(item as Object) as Boolean | Returns true if the set contains the given element. |