minus method

KtSet<T> minus(
  1. KtIterable<T> elements
)

Returns a set containing all elements of the original collection except the elements contained in the given elements collection.

Implementation

KtSet<T> minus(KtIterable<T> elements) {
  final result = toMutableSet();
  result.removeAll(elements);
  return result;
}