From: jake kaiden Date: 2011-10-26T07:33:54+09:00 Subject: Re: multi dimension array juman s. wrote in post #1028453: > a=[["doc1",["hi","bye","guy"],[],[],[]],["doc2",["bye","now","is","hi","hi","hi"],[],[],[]],["doc3",["bye","now","is","hi","hi","hi","why","go","guy"],[],[],[]]] > > i have this array i'd like to multiply the 2nd inner array with the 3rd > inner array and fill the 4th inner array with these results hi Juman, if we write out your array `a` like this: a = [ ["doc1", ["hi","bye","guy"], [], [], [] ], ["doc2", ["bye","now","is","hi","hi","hi"], [], [], [] ], ["doc3", ["bye","now","is","hi","hi","hi","why","go","guy"], [], [], [] ] ] ...what sections are you referring to as the 2nd, 3rd, and 4th inner arrays? - j -- Posted via http://www.ruby-forum.com/.