emptyList

external fun <T> emptyList(): List<T>(source)

Creates a fresh empty ArrayList exposed through the read-only List interface.

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

Return

a new list with size zero.

Type Parameters

T

element type.

See also