setWithElementCanDestroy

fun A_Set.setWithElementCanDestroy(newElementObject: A_BasicObject, canDestroy: Boolean): A_Set

Answer a set like this one but with newElementObject present. If it was already present in the original set then answer that. The set might be modified in place (and then returned) if canDestroy is true and the set is mutable.

Return

The new set containing the specified object.

Parameters

newElementObject

The object to add.

canDestroy

Whether the original set can be modified if mutable.