`sort xs` evaluates to a data structure which contains the original unsorted sequence.
When asked for the ith element, the datastructure uses quickselect to produce the ith smallest element, while also partially sorting the sequence.
Repeated requests for the ith element will become faster and faster, as the sequence becomes more and more sorted.
`sort xs` evaluates to a data structure which contains the original unsorted sequence.
When asked for the ith element, the datastructure uses quickselect to produce the ith smallest element, while also partially sorting the sequence.
Repeated requests for the ith element will become faster and faster, as the sequence becomes more and more sorted.