title: Using RxJava to fetch object, transform a containing list, and use the list
body: <p>The high level problem I'm trying to solve is transforming a list of <code>Foo</code> objects contained in a fetched <code>FooContainer</code> (Observable) to a list of <code>FooBar</code> objects using RxJava. </p>
  
  <p>My (confused) attempt:</p>
  
  <pre><code>fooContainerObservable
    .map(container -&gt; container.getFooList())
    .flatMap(foo -&gt; transformFooToFooBar(foo))
    .collect( /* What do I do here? Is collect the correct thing? Should I be using lift? */)
    .subscribe(fooBarList -&gt; /* Display the list */);
  </code></pre>
  
  <p>My confusion (or at least one point of it) is the step moving the flattened list back to a list. </p>
  
  <p>Note: I'm attempting to do this in an Android app.</p>