Join Slack
Powered by
<Kotlin declare nested array> How can nested lists...
# stackoverflow
u
user
10/23/2018, 8:31 AM
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]).
Open in Slack
Previous
Next