SetObserver

typealias SetObserver<S, T> = (source: S, removed: Set<T>, added: Set<T>) -> Unit

Handler for arbitrary changes to some source.

Parameters

source

the item that changed

removed

items removed from the source

added

items added from the source