kotlin.collections.plusElement

plusElement

inline fun <T> Set<T>.plusElement(element: T): Set<T>

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.

inline fun <T> Iterable<T>.plusElement(element: T): List<T>
登录查看完整内容