I've been working on a quicksort function which incorporates a partition function I wrote, however, I keep encountering bugs when comparing parameters of my function. It keeps telling me that my r and p comparisons are of length 0, but I thought it should be a valid comparison since I declare them as ints when I call the quicksort function. Any help would be appreciated!
im not sure why you would return r, shouldn't you return a modifed version of input, so that input is changed in someway ?
you should either use browse(), debug() functions to step through your code, or be liberally with print() and cat() statements to let you see what you are doing.