updateValue

fun <T> MutableObservable<Option<T>>.updateValue(updateFunc: (T) -> T)

Handy method to update the optionalOption contents of this MutableObservable. Applies the given function to the value contained by the underlying Option, if it is empty nothing is computed.

Parameters

updateFunc

the update function to perform on the value wrapped by the underlying Option