Akhil Suseelan
09/10/2019, 3:37 PMassociateTo
?Shawn
09/10/2019, 3:45 PMAkhil Suseelan
09/10/2019, 4:07 PMDominaezzz
09/10/2019, 4:14 PMAkhil Suseelan
09/10/2019, 4:15 PMmutableMapOf<String, String>
karelpeeters
09/10/2019, 4:47 PMilya.gorbunov
09/10/2019, 6:17 PMa=b
and you want to split each string by =
into key and value, you can do it as following:
list.associateTo(mutableMap) { it.split("=").let { (key, value) -> key to value } }
Akhil Suseelan
09/12/2019, 4:10 AM