From: Mason Kelsey Date: 2009-09-27T14:38:10+09:00 Subject: Push and Pop on a Priority Queue appears to change nature of Array --0021cc022d0e07a3f604748896ef Content-Type: text/plain; charset=ISO-8859-1 I'm stumped. Worked on this problem for over three hours. I created an array: current_state = [3, 1, 6, 5, 2, 0, 4, 7, 8] and puts "Current_state.index(0) = " + current_state.index(0).to_s displays a 5, as would be expected puts "Length of current_state array = " + current_state.length.to_s displays a 9, as expected I defined a Priority Queue to create an ascending queue with: open_queue = PQueue.new(proc{|x,y| x[0][0]