gregarican wrote:
> [["Value A", "Value B", 3], ["Value A", "Value C", 2],["Value A",
> Value B", 1]]
> 
> What I would like to do is find the elements where the first two items
> are the same and then combine the third.

arr=[["Value A", "Value B", 3], ["Value A", "Value C", 2],
    ["Value A", "Value B", 1]]
arr.inject(Hash.new 0) do |hash, sarr|
  hash[sarr[0..-2]] += sarr[-1]
  hash
end #=> {["Value A", "Value C"]=>2, ["Value A", "Value B"]=>4}

Not exactly what you asked for, but converting it into an array shouldn't be
too hard from there.


-- 
NP: Ensiferum - Treacherous Gods
Ist so, weil ist so
Bleibt so, weil war so