From: "Jan E." Date: 2012-06-29T21:32:40+09:00 Subject: Re: stack level too deep for quicksort code Lars Haugseth wrote in post #1066622: > How about: > > pivot = array.shift > left, right = array.partition {|x| x < pivot} I wouldn't do it. This removes the first element from the original array, which will make no sense to the user. -- Posted via http://www.ruby-forum.com/.