andodeki
03/24/2022, 10:45 PMfun main() {
var newList1 = listOf(listOf(1, "a", "b"), listOf(1, "a", "b"), listOf(1, "a", "b"))
var newList = listOf(1, "b", "C" to newList1)
var defaultList = listOf(1, "a", 'B' to newList)
var a = defaultList[2]
print(a::class.java.typeName) //kotlin.Pair
}
I need to access "newList1" but i cant since "defaultList" is a Pair
how can i access via index or how can i construct to get this behaviour
nkiesel
03/24/2022, 10:49 PM