lawlorslaw
12/20/2018, 9:13 AMTobi
12/20/2018, 9:32 AMreducer function to first change it from Observable<Spot> to Observable<List<Spot>> and then transform it to a Single<List<Spot>>Tobi
12/20/2018, 9:33 AMedwardwongtl
12/20/2018, 9:36 AM.toList() on a Observable<T> will be enough.lawlorslaw
12/20/2018, 9:55 AMedwardwongtl
12/20/2018, 9:56 AMlawlorslaw
12/20/2018, 9:57 AMedwardwongtl
12/20/2018, 9:58 AM.toList()Tobi
12/20/2018, 9:59 AMtoList()Paul Woitaschek
12/20/2018, 7:13 PMedwardwongtl
12/20/2018, 7:17 PMtoList function is just returning the same inatance typecasted to List. It does not create a new list and do all the stupid copying.Paul Woitaschek
12/20/2018, 7:18 PMPaul Woitaschek
12/20/2018, 7:18 PMPaul Woitaschek
12/20/2018, 7:19 PMmapedwardwongtl
12/20/2018, 7:20 PMPaul Woitaschek
12/20/2018, 7:22 PMPaul Woitaschek
12/20/2018, 7:22 PMObservable.just(1, 2).toList().doOnSuccess { it.remove(0) }Paul Woitaschek
12/20/2018, 7:23 PM