Join Slack
Powered by
Is there a Kotlin library for small collections? L...
# getting-started
a
Alexander Maryanovsky
03/13/2023, 10:46 AM
Is there a Kotlin library for small collections? Like if I need a
Map
that typically holds 1 or 2 items.
m
mankin
03/13/2023, 12:56 PM
mapOf(..)
or
mutableMapOf(..)
. You can use the pair compact
mapOf("key" to "value",...)
g
Gleb Minaev
03/13/2023, 2:14 PM
I guess there is no one. But maybe `android.util.ArrayMap`
implementation
is what you are seeking.
2
Views
Open in Slack
Previous
Next