operator ^ method

Iterable<E> operator ^(
  1. Iterable<E> other
)

Returns a Iterable containing all elements from both collections without intersect.

It is not in the Kotlin collection library. But I added it because it looks useful.

Implementation

Iterable<E> operator ^(Iterable<E> other) => (this - other) | (other - this);