https://kotlinlang.org logo
o

oday

02/12/2021, 11:29 AM
can I turn the keys of a Map<String, Int> into a String array?
items.keys.toList().toTypedArray()
y

Youssef Shoaib [MOD]

02/12/2021, 11:32 AM
No need for the
toList()
conversion, you can just directly do
items.keys.toTypedArray()
o

oday

02/12/2021, 11:33 AM
ah ok thanks
3 Views