emptySet

fun <T> emptySet(): Set<T>(source)

Creates a fresh empty HashSet exposed through the read-only Set interface.

The result is not a shared singleton. Read-only access does not make the underlying set immutable.

Return

a new set with size zero.

Type Parameters

T

element type.

See also