There are 4 variations for the syntax of Set.minus() extension function. They are:
operator fun <T> Set<T>.minus(element: T): Set<T>
This extension function returns a set containing all elements of the original set except the given element.
operator fun <T> Set<T>.minus(elements: Array<out T>): Set<T>
This extension function returns a set containing all elements of the original set except the elements contained in the given elements array.
operator fun <T> Set<T>.minus(elements: Iterable<T>): Set<T>
This extension function returns a set containing all elements of the original set except the elements contained in the given elements collection.
operator fun <T> Set<T>.minus(elements: Sequence<T>): Set<T>
This extension function returns a set containing all elements of the original set except the elements contained in the given elements sequence.