toSet method

  1. @useResult
KtSet<T> toSet()

Returns a KtSet of all elements.

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

Implementation

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