Is there an alternative to this verbose syntax in ...
# rx
n
Is there an alternative to this verbose syntax in RxJava2 for combining streams? You have to specify
BiFunction
and the types explicitly:
Copy code
observable1
  .withLatestFrom(
    observable2,
    BiFunction { t1: Any, t2: Any -> ... }
  )
Ideally this would just be the following, but it can't be matched:
Copy code
observable1
  .withLatestFrom(observable2) { t1, t2 -> ...}