toMutableSet

Return a MutableSet containing all the elements of this sequence.

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

The operation is terminal.