If I want to make a list observable, do I have to wrap this is a channel? I want to be notified whenever an item is added or removed from the list
val myList = mutableListOf<String>()
o
octylFractal
06/24/2020, 11:57 PM
I don't think kotlin really has observable lists out of the box, you're probably going to have to roll your own wrapper or find a library, there's no easy "wrap in a channel"
if it's JVM only, I'd use the javafx ObservableList and somehow attach the ChangeListener to a channel, maybe