RxJava Kesişim Kümesi Bulmak

Observable<Integer> two = Observable.range(0, 100).filter(x->x%2==0);
Observable<Integer> three= Observable.range(0, 100).filter(x->x%3==0);
three.filter(y->two.contains(y).blockingGet()).subscribe(System.out::println)

 

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *