>iterable.fold(0, (prev, element) =&gt; prev + element);
</code></pre>
    </section>
    
    <section class="summary source-code" id="source">
      <h2><span>Implementation</span> </h2>
      <pre class="language-dart"><code class="language-dart">T fold&lt;T&gt;(T initialValue, T combine(T previousValue, E element)) {
  var value = initialValue;
  int length = this.length;
  for (int i = 0; i &lt; length; i++) {
    value = combine(value, elementAt(i));
    if (length != this.length) {
      throw new Co