From: Chris Gernon Date: 2007-01-24T00:25:11+09:00 Subject: Re: matching arrays within arrays Nick Black wrote: > Is there a Ruby function to do this? uniq will work. It doesn't matter what type of object the members of the array are, so it can be used for an array of arrays. irb> [['foo', 'bar', 'ru', 'by'], ['ru'], ['bar', 'foo'], ['foo', 'bar', 'ru', 'by']].uniq => [["foo", "bar", "ru", "by"], ["ru"], ["bar", "foo"]] -- Posted via http://www.ruby-forum.com/.