<div dir="ltr"><br><div class="gmail_extra">What I'm trying to explain is that reduce takes two arguments: the growing value and the current front. In your case, the current front is indeed a 2-tuple, but that's an unrelated issue.<br>
<br></div><div class="gmail_extra">You're trying to get:<br><br>reduce!( (firstElemOfPair, secondElemOfPair) => ...) (range) <br><br></div><div class="gmail_extra">to work, whereas reduce signature is:<br><br>reduce!( (onGoingValue, elem) => ...) (range) <br>
<br><br></div></div>