如果我有Observable
List
个Letter
public Observable<List<Letter>> getAToZList() {
return Observable.create(
new Observable.OnSubscribe<List<Letter>>() {
@Override
public void call(Subscriber<? super List<Letter>> subscriber) {
List<Letter> aToZLetters = getLetters();
subscriber.onNext(aToZLetters);
subscriber.onCompleted();
}
}
);
}
如何创建一个观察单Observable
的{{1}},并在Letter
中为每个List
发一个?{/ p>
public Observable<Letter> getAToZ() {
return Observable.create(
getAToZList().something() ??
);
}