Returns the median of an array anArray using a pick function to split the array.
anArray
if the array is empty
a function to pick an element from
a function returning the median of anArray, or undefined if anArray is empty
Returns the median of an array
anArrayusing a pick function to split the array.Throws
if the array is empty