From: Nick Black Date: 2007-01-24T00:40:15+09:00 Subject: Re: matching arrays within arrays Cheers! On 1/23/07, Chris Gernon wrote: > 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/. > > -- Nick Black -------------------------------- http://www.blacksworld.net