drain

fun <T> MutableSet<T>.drain(): MutableSet<T>

Drain the elements of the receiver into a new MutableSet, leaving the receiver empty.

Return

A copy of the receiver.

Author

Todd L Smith