syncWith
fun <E> MutableObservableList<E>.syncWith(other: MutableObservableList<out E>): ListChangeListener<E>
Sync this
mutable list with other. Returns a ListChangeListener for this
list. To stop syncing, remove the listener using MutableObservableList.removeListener. As Glok uses weak references for listeners, you must keep a reference to this listener, otherwise the garbage collector will end the sync.
While a list is synced, you must NOT update this list, only other can be changed. If you do mutate the list, you will likely get IndexOutOfBoundsException or IllegalStateException thrown.