Ruby - Enumerable and Collection Processing
What will be the output of this Ruby code?
values = [4, 6, 8]
result = values.inject(2) { |acc, num| acc + num }
puts result