<Kotlin declare nested array> How can nested lists...
# stackoverflow
u
Kotlin declare nested array How can nested lists be declared in Kotlin? I'm looking for something in the form of: var nestedList:List = [1,[2,[3,null,4]],[null],5] so that I can flatten it later on (result should be nestedList = [1, 2, 3, 4, 5]).