t = db.mr_outreduce; t.drop(); t.insert( { _id : 1 , a : [ 1 , 2 ] } ) t.insert( { _id : 2 , a : [ 2 , 3 ] } ) t.insert( { _id : 3 , a : [ 3 , 4 ] } ) outName = "mr_outreduce_out"; out = db[outName]; out.drop(); m = function(){ for (i=0; i