I'm adapting some code from Python into Ruby, which defines a #partition method and a #quicksort method. I'm running into a "Stack Level Too Deep" error due to the enumerable in the #partition method:I'm adapting some code from Python into Ruby, w
I'm adapting some code from Python into Ruby, which defines a #partition method and a #quicksort method. I'm running into a "Stack Level Too Deep" error due to the enumerable in the #partition method:I'm adapting some code from Python into Ruby, w