Hello, could anyone explain to me why in the book they use Observable.from([repo]) instead of Observable.of(repo). I mean, repo is just one String.
Thank you very much!
Hello, could anyone explain to me why in the book they use Observable.from([repo]) instead of Observable.of(repo). I mean, repo is just one String.
Thank you very much!
Oh that’s just a bit of designing ahead - in the challenges section you are supposed to get a list of repos and plug it in the existing code and it’s a little easier to solve the challenge if the existing code already assumes a list of URLs in there.
But you are right - if you just need the one, there is no point to use an array there
Thank you!
This topic was automatically closed after 166 days. New replies are no longer allowed.