fork(4) download
  1. input = [{:name => "Kutty", :score => 2, :some_key => 'value'},{:name => "Kutty", :score => 4, :some_key => 'value'},{:name => "Baba", :score => 5, :some_key => 'value'}]
  2.  
  3. output = input.uniq { |x| x[:name] }
  4.  
  5. puts output
Success #stdin #stdout 0s 4760KB
stdin
Standard input is empty
stdout
{:name=>"Kutty", :score=>2, :some_key=>"value"}
{:name=>"Baba", :score=>5, :some_key=>"value"}