<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sys1yagi</author_name>
  <author_url>https://blog.hatena.ne.jp/sys1yagi/</author_url>
  <blog_title>visible true</blog_title>
  <blog_url>https://sys1yagi.hatenablog.com/</blog_url>
  <categories>
    <anon>RxJava</anon>
  </categories>
  <description>問題 以下のコード(Retrolampda 1.8.0 + RxJava 1.0.0-rc.9で書いてます)では空のリストをObservable.from()に渡している。これを単純にmap()したりsubscribe()するだけなら特に問題はでない。しかし、reduce(Func2)やscan(Func2)などが途中に挟まるとエラーになる。 List&lt;String&gt; amounts = new ArrayList&lt;&gt;(); Observable.from(amounts) .map(Integer::parseInt) .reduce((a, b) -&gt; a + b) .subscribe(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsys1yagi.hatenablog.com%2Fentry%2F2014%2F12%2F30%2F163656&quot; title=&quot;ObservableがNoSuchElementExceptionで死ぬ時はscan(Func2)やreduce(Func2)にinitialValueを渡す - visible true&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-12-30 16:36:56</published>
  <title>ObservableがNoSuchElementExceptionで死ぬ時はscan(Func2)やreduce(Func2)にinitialValueを渡す</title>
  <type>rich</type>
  <url>https://sys1yagi.hatenablog.com/entry/2014/12/30/163656</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
