in reply to Re: function that returns the middle of an array
in thread function that returns the middle of an array

I think that your subroutine doesn't sort the array so it just returns the elements at the middle, not the median of the array.

  • Comment on Re^2: function that returns the middle of an array