title: How to apply a list of functions to a value in Java 8?
body: <p>Let's say I have this imperative code:</p>
  
  <pre><code>    List&lt;Function&lt;T, T&gt;&gt; functions = ...
      T value = ...
      for (Function&lt;T, T&gt; function : functions) {
          value = function.apply(value);
      }
  </code></pre>
  
  <p>How do I write this in the functional style (like what fold does in Scala)?</p>