Of course I can write this simple function: ``` fu...
# tornadofx
o
Of course I can write this simple function:
Copy code
fun <T> ObservableValue<T?>.attach(handler: (T?) -> Unit) {
    handler(value)
    addListener { _, _, newValue -> handler(newValue) }
}