add

abstract fun add(element: T): Boolean(source)

Adds element to this collection.

Lists retain duplicates; sets may leave the collection unchanged for an equal element.

Return

true if the collection changed.

Parameters

element

element to add.