Plans for an algorithm to find Kth Order Statistic from Array?

Hi! I just started searching through the algorithms package and I don't (yet) see if there is an algorithm for selecting the Kth Order Statistic from a Swift Array or Set. My guess is this would also be expected to run in linear time. Is this named something else in the package? Were there plans or blockers for shipping this in the future? Thanks!

I still was looking for any more clues on this… I found another place I would have wanted this ability. I did find the min-max functions… but this looks like it would return the k smallest or largest elements sorted. My preference would have been to either just return the Kth Order Statistic or return the k elements unsorted.

I think what we are looking for would be similar to nth_element from <algorithm> in C++.

Did anyone else want this? I could work on a pitch if anyone else was waiting for that.