mment collapse" id="comment-func-reduce__"><div class="p">
    <p>Returns the result of calling the given combining closure with each
element of this sequence and an accumulating value.</p>

<p>The <code>nextPartialResult</code> closure is called sequentially with an
accumulating value initialized to <code>initialResult</code> and each
element of the sequence. This example shows how to find the sum
of an array of numbers.</p>

<pre><code class="language-swift">let numbers = [1, 2, 3, 4]
let addTwo: (Int, In