The following diagram explains what happens in
Segment 388 as the inject:into:
method marches
down the receiver Array
instance, combining the Array
instance's elements with the inject:
argument or with the previous
result:
*------* *------*------*------*------* | 0 | | 570 | 720 | 640 | 720 | *------* *------*------*------*------* | | | *--------------* | | v v *------* *------*------*------*------* | 570 | | 570 | 720 | 640 | 720 | *------* *------*------*------*------* | | | *-----------------------* | | v v *------* *------*------*------*------* | 1290 | | 570 | 720 | 640 | 720 | *------* *------*------*------*------* | | | *------------------------------* | | v v *------* *------*------*------*------* | 1930 | | 570 | 720 | 640 | 720 | *------* *------*------*------*------* | | | *-------------------------------------* | | v v *------* | 2650 | *------*