From: Derek Cannon Date: 2009-12-13T22:14:36+09:00 Subject: Re: Code block for element comparison in an array? Ah, I figured it out... For anyone who is interested the answer is: for i in 0..array.length-1 for j in i+1..array.length-1 // Comparison here! end end -- Posted via http://www.ruby-forum.com/.