title: Java 8 multiple mapping
body: <p>Is it possible perform multiple mapping on collection?
  Following code compilation error:</p>
  
  <blockquote>
    <p>... in Stream cannot be applied to <code>java.util.function.Function&lt;capture&lt;?&gt;,capture&lt;?&gt;&gt;</code></p>
  </blockquote>
  
  <pre><code>private static List&lt;?&gt; multipleMapping(final Collection&lt;?&gt; collection, final List&lt;Function&lt;?, ?&gt;&gt; functions) {
      Stream&lt;?&gt; stream = collection.stream();
      for (Function&lt;?, ?&gt; function : functions) {
          stream = stream.map(function);
      }
      return stream.collect(Collectors.toList());
  }
  </code></pre>
  
  <p>I would like to generic solution.</p>