From: Dejan Dimic Date: 2007-11-23T21:55:00+09:00 Subject: Re: Two arrays: return only values that exist in both arrays? On Nov 23, 1:25 pm, Joshua Muheim wrote: > Hi all > > a = [:one, :two, :three, :six] > b = [:two, :four, :five: six] > > I want to extract the values of two arrays which exist in both ones (a > and b): > > # => [:two, :six] > > Does there exist a method for this? > > Thanks > Josh > -- > Posted viahttp://www.ruby-forum.com/. Try a&b Dima :-)