From: why the lucky stiff Date: 2005-08-02T06:36:35+09:00 Subject: Re: array in array, like include? Ben wrote: >Is there a function to checking to see if the elements of one array >exist in another? > >a = [1,2,3,4,5] >b = [1,4] > > Elsewhere... >> a = [1,2,3,4,5] >> b = [1,4] >> (b-a).empty? => true >> c = [6, 4] >> (c-a).empty? => false _why