operator & method

Set<E> operator &(
  1. Iterable<E> other
)

Returns a Set containing all elements that are contained by both this collection and the specified collection.

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

Implementation

Set<E> operator &(Iterable<E> other) => intersection(other.toSet());