【发布时间】:2019-07-09 10:46:55
【问题描述】:
我看到方法 withLatestFrom() 的编译错误有什么问题?这是实验截图:
val source1 = Observable.just(1,2,3)
val source2 = Observable.just("A", "B", "C")
source1.withLatestFrom(source2) {
intValue: Int, stringValue: String, stringResult: String ->
"Result string: $intValue $stringValue"}
错误:不能使用提供的参数调用以下函数:
【问题讨论】: