plus method

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

Returns a set containing all elements of the original collection and then all elements of the given elements collection.

Implementation

KtSet<T> plus(KtIterable<T> elements) {
  final result = KtMutableSet<T>.of();
  result.addAll(asIterable());
  result.addAll(elements);
  return result;
}