From: Derek Cannon Date: 2010-04-12T14:49:20+09:00 Subject: Comparing Arrays Hello everyone, another easy question from a beginner: How do you create a method to compare two arrays so that if they share at least 1 common element it returns true? For example: a = %w(m w f) b = %w(m w) c = %w(t r) share_elements?(a,b) #=> true share_elements?(a,c) #=> false Thanks for your time, Derek -- Posted via http://www.ruby-forum.com/.