minus

inline operator fun <T> Array<out T>.minus(element: T): Array<T>

Returns an array containing all elements of the original collection without the first occurrence of the given element.


inline operator fun <T> Array<out T>.minus(elements: Array<out T>): Array<T>

Returns an array containing all elements of the original collection except the elements contained in the given elements array.

Sources

Link copied to clipboard
Link copied to clipboard