toSet

fun <E : Any> EntitySequence<E, *>.toSet(): Set<E>(source)

Return a Set containing all the elements of this sequence.

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

The operation is terminal.