add

fun add(element: E): Boolean

Adds the specified element to the set.

Return

true if the element has been added or false if the element is already contained within the set.

Parameters

element

The element to add to the set.