mutableSetOf

inline fun <T> mutableSetOf(): MutableSet<T>(source)

Returns an empty new MutableSet.

The returned set preserves the element iteration order.

Since Kotlin

1.1

Samples


fun <T> mutableSetOf(vararg elements: T): MutableSet<T>(source)

Returns a new MutableSet with the given elements. Elements of the set are iterated in the order they were specified.

Since Kotlin

1.0

Samples