kotlin.collections.minusElement

minusElement

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

Returns a set containing all elements of the original set except the given element.

The returned set preserves the element iteration order of the original set.

inline fun <T> Iterable<T>.minusElement(element: T): List<T>