median

Calculates the median of elements in this IntRange.

If the number of elements in the range is odd, the median is the middle element. If the number of elements is even, the median is the average of the two middle elements.

Return

The median of elements in this range.

Throws

when the IntRange is empty.