[1, 2, 3, 4].inject(0) { |result, element| result + element } # => 10
I\'m looking at this code but my brain is not registering how the number 1
The code iterates over the four elements within the array and adds the previous result to the current element: