Closed piotrek1543 closed 7 years ago
I don't understand what the difference is in the changed example. Can you elaborate?
Why not use strings
and ints
as they are declared in the example?
The associated .java file also seems to work without problem.
@Froussios Well, the problem was that I couldn't use
Observable.sequenceEqual(strings, ints, (s,i) -> s.equals(i.toString()))
without declaration of Subscription
like:
Subscription sequenceEqual = Observable.sequenceEqual(...)
Every time I tried to compile it, it returned an error. As you may noticed I used
compile 'io.reactivex:rxjava:1.1.1'
Now I changed dependency to compile 'io.reactivex:rxjava:1.2.1'
and it works without this disused decraration like:
Subscription sequenceEqual = ...
Strange, maybe there was another 'typo' issue which I missed or that version of library was corrupted.
Nevermind. Now it works fine.
Thanks for response.
Hi,
going through your excellent tutorial I I've already noticed that I cannot write a function like this:
The working version should be like this:
where declarations of
just1
and `just2' variables:Did you forgot to declare a variable or it changed with newer version of RxJava?
I'm using this dependencies:
Cheers