Re: Partial sorting John Cowan 10 Dec 2015 12:39 UTC
Daniel Llorens scripsit:
> I would like to see partial sorting and median procedures added. I
> think those belong here (or in any ‘sorting’ library, really)
> and not many implementations offer them.
These make sense to me. Median is straightforward, and partial sorting
shouldn't be difficult, at least for vectors.
> As a minor comment, subrange parameters should include a stride
> and not only start and end.
I would only accept this if someone sent in a patch (which would have to
be pretty comprehensive) to the implementation.
> Count/start/stride works better than start/end/stride when the stride
> is not 1, so please consider that also.
Scheme is pretty consistent in using start/end; I think it would be confusing
to go to something other than start/end when stride is added. It's trivial
to convert from one format to the other.
--
John Cowan http://www.ccil.org/~cowan xxxxxx@ccil.org
BALIN FUNDINUL UZBAD KHAZADDUMU
BALIN SON OF FUNDIN LORD OF KHAZAD-DUM