I've got the following code in RxGroovy:
Observable
.just(1, 2, 3, 4, 5)
.groupBy({num -> num % 2 == 0})
...
And the type of num
is Observable<Integer>
instead of Integer
. I believe the reason is that .groupBy
exists in Groovy
by default. How can I still use reactive .groupBy
method in RxGroovy?