plusElement
Returns a list containing all elements of the original collection and then the given element.
Since Kotlin
1.0Returns a set containing all elements of the original set and then the given element if it isn't already in this set.
The returned set preserves the element iteration order of the original set.
Since Kotlin
1.0Returns an array containing all elements of the original array and then the given element.