基本上,我有一连串的单词Observable<String>
我想要的是累积它们,直到我有一个“。”之前什么都没有发出。 当我有一个“。”我想宣读整个句子。以此类推,直到流完成。
1) The -> nothing, accumulated
2) quick -> nothing, accumulated
3) brown -> nothing, accumulated
4) fox -> nothing, accumulated
5) jumps -> nothing, accumulated
6) over -> nothing, accumulated
7) the -> nothing, accumulated
8) lazy -> nothing, accumulated
9) dog. -> emit the whole sentence, clear accumulator
扫描,缩小-看上去相似,但不完全相同,不确定