julioromano
06/17/2021, 1:30 PMmutableStateListOf and mutableStateMapOf but no mutableStateSetOf ?Big Chungus
06/17/2021, 1:32 PMAdam Powell
06/17/2021, 3:10 PMZach Klippenstein (he/him) [MOD]
06/17/2021, 4:21 PMLinkedHashMap do it)Adam Powell
06/17/2021, 4:26 PMjulioromano
06/17/2021, 10:22 PMAlso you can trivially implement a set on top of a map (I believe this is actually how some of the standard JVM collections like@Zach Klippenstein (he/him) [MOD] I though of that too, because the keys of ado it)LinkedHashMap
Map are indeed a Set. Though couldn’t come up with a simple way of declaring:
val myCollection = remember { mutableStateMapOf<String, Long>() }
and then accessing myCollection as a MutableSetZach Klippenstein (he/him) [MOD]
06/17/2021, 10:53 PM