I am trying to use a HashMap to map a unique string to a string ArrayList like this:
HashMap>
Basical
You can use Kotlin extension function
fun LinkedHashMap.getKeyByPosition(position: Int) = this.keys.toTypedArray()[position] fun LinkedHashMap.getValueByPosition(position: Int) = this.values.toTypedArray()[position]