Join Slack
Powered by
can I turn the keys of a Map<String, Int> in...
# getting-started
o
oday
02/12/2021, 11:29 AM
can I turn the keys of a Map<String, Int> into a String array?
oday
02/12/2021, 11:31 AM
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
4
Views
Open in Slack
Previous
Next