Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
plusElement
fun <T> Array<out T>.plusElement(element: T): Array<T>
(source)
Returns an array containing all elements of the original array and then the given element.
Returns a list containing all elements of the original collection and then the given element.
Returns 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.