{"author_name":"sys1yagi","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsys1yagi.hatenablog.com%2Fentry%2F2014%2F12%2F30%2F163656\" title=\"Observable\u304cNoSuchElementException\u3067\u6b7b\u306c\u6642\u306fscan(Func2)\u3084reduce(Func2)\u306binitialValue\u3092\u6e21\u3059 - visible true\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["RxJava"],"description":"\u554f\u984c \u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9(Retrolampda 1.8.0 + RxJava 1.0.0-rc.9\u3067\u66f8\u3044\u3066\u307e\u3059)\u3067\u306f\u7a7a\u306e\u30ea\u30b9\u30c8\u3092Observable.from()\u306b\u6e21\u3057\u3066\u3044\u308b\u3002\u3053\u308c\u3092\u5358\u7d14\u306bmap()\u3057\u305f\u308asubscribe()\u3059\u308b\u3060\u3051\u306a\u3089\u7279\u306b\u554f\u984c\u306f\u3067\u306a\u3044\u3002\u3057\u304b\u3057\u3001reduce(Func2)\u3084scan(Func2)\u306a\u3069\u304c\u9014\u4e2d\u306b\u631f\u307e\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3002 List<String> amounts = new ArrayList<>(); Observable.from(amounts) .map(Integer::parseInt) .reduce((a, b) -> a + b) .subscribe(\u2026","width":"100%","url":"https://sys1yagi.hatenablog.com/entry/2014/12/30/163656","height":"190","version":"1.0","blog_url":"https://sys1yagi.hatenablog.com/","image_url":null,"author_url":"https://blog.hatena.ne.jp/sys1yagi/","type":"rich","provider_name":"Hatena Blog","published":"2014-12-30 16:36:56","blog_title":"visible true","title":"Observable\u304cNoSuchElementException\u3067\u6b7b\u306c\u6642\u306fscan(Func2)\u3084reduce(Func2)\u306binitialValue\u3092\u6e21\u3059","provider_url":"https://hatena.blog"}