Answers for "initialize empty list with a type in kotlin"

1

empty list kotlin

//Returns an empty read-only list
val emptyList = emptyList<Int>()
val emptyListOfStrings = emptyList<String>()
Posted by: Guest on September-05-2021
3

Kotlin create empty list

val list = listOf<String>()
Posted by: Guest on September-14-2020

Code answers related to "initialize empty list with a type in kotlin"

Browse Popular Code Answers by Language