Answers for "how to return an empty list 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

Code answers related to "how to return an empty list in kotlin"

Browse Popular Code Answers by Language