com.noheltcj.rxcommon.operators.Operators.kt Maven / Gradle / Ivy
package com.noheltcj.rxcommon.operators
import com.noheltcj.rxcommon.Source
/**
* While this doesn't follow kotlin convention, the Operators creates better native interfaces
*/
object OperatorHelpers {
fun combineLatest(sourceOne: Source, sourceTwo: Source): Source> =
sourceOne.combineLatest(sourceTwo) {
e1, e2 -> e1 to e2
}
}
fun Source.combineLatest(otherSource: Source): Source> =
combineLatest(otherSource) {
e1, e2 -> e1 to e2
}