plus method

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

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

Implementation

KtList<T> plus(KtIterable<T> elements) {
  final result = mutableListOf<T>();
  result.addAll(asIterable());
  result.addAll(elements);
  return result;
}