toSet method

KtSet<T> toSet()

Returns a KtSet of all elements.

The returned set preserves the element iteration order of the original collection.

Implementation

KtSet<T> toSet() => linkedSetFrom(iter);