From: Shreyas Satish Date: 2010-04-06T21:50:24+09:00 Subject: Find a set of common elements from a multi-dimensional array I have a multi-dimensional array ; a=[[2,3,4],[1,3,4],[1,2],[1,2,3,4]] i've to compare all the 4 sub-arrays and get common elements.Next,take 3 subarrays at a time and get common elements.then take 2 sub arrays at a time and get common elements. -- Posted via http://www.ruby-forum.com/.