combine

fun <T1, T2, R> TickingValue<T1>.combine(other: TickingValue<T2>, transform: (T1, T2) -> R): TickingValue<R>(source)

Combines two different TickingValues.

The resulting TickingValue.value is computed by transform, which receives the value of this and other. The resulting TickingValue.nextTick will be the min of this and other, see also withNextTickAtMost.