Get started

intersect

infix fun <E> PersistentSet<E>.intersect(elements: Iterable<E>): PersistentSet<E>(source)

Returns a new persistent set with elements in this set that are also contained in the specified elements collection, or this instance if no modifications were made in the result of this operation.


Returns a new persistent set with elements in this collection that are also contained in the specified elements collection.