title: How to pass modified list downstream in RxJava in Android?
body: <p>I have following code that works well.</p>
  
  <pre><code>Observable.from(...)
      .map { // List&lt;Object&gt;
          if (My_Condition_is_true) {
              //...
          }
          val newList = getNewListIfConditionIsOkay(it)
          newList.map { item -&gt; toSomethingElse(item) }
      }
      .subscribeBy(myErrorFun) {
          //...
      }
  </code></pre>
  
  <p>I feel <code>map</code> operator does not looks cool but I have no idea how to fix it. This is what is in my mind.</p>
  
  <pre><code>Observable.from(...)
          .doOnNext {// List&lt;Object&gt;
              if (My_Condition_is_true) {
                  //...
                  return getNewListIfConditionIsOkay(it)
              }
              return it
          .map { // List&lt;Object&gt;
              it.map { item -&gt; toSomethingElse(item) }
          }
          .subscribeBy(myErrorFun) {
              //...
          }
  </code></pre>
  
  <p>My Observable returns only a list. What is your recommendation? </p>