Efficient sort function allowing own test and swap function as parameter

Imperatorn johan_forsberg_86 at hotmail.com
Wed Oct 7 07:29:28 UTC 2020


On Wednesday, 7 October 2020 at 00:08:06 UTC, Ali Çehreli wrote:
> On 10/6/20 3:18 PM, Alaindevos wrote:
>> [...]
>
> I had fun writing the following program. Note how makeIndex 
> allows visiting elements in sorted order without actually 
> sorting them.
>
> [...]

Nice use of iota!


More information about the Digitalmars-d-learn mailing list