From: Joshua Muheim Date: 2006-01-12T19:44:59+09:00 Subject: Re: Merge two arrays? Joshua Muheim wrote: > This already anwers my question, thank you. :-) Hrm oke, got another related question. array1 = [1,2,4,6] array2 = [1,3,5,6] Is there an easy way for doing this? array1 ?? array2 = [1,6] # Only add entries that occur in both arrays array1 ?? array2 = [2,3,4,5] # Only add entries that occur in one of both arrays -- Posted via http://www.ruby-forum.com/.