kotlin.collections.listOf

listOf

fun <T> listOf(vararg elements: T): List<T>

Returns a new read-only list of given elements. The returned list is serializable (JVM).

inline fun <T> listOf(): List<T>

Returns an empty read-only list. The returned list is serializable (JVM).

fun <T> listOf(element: T): List<T>

Returns an immutable list containing only the specified object 登录查看完整内容