Re: QuickSort on ranges

2020-10-18 Thread jerome via Digitalmars-d-learn
I posted some sum-up on my github. https://preview.tinyurl.com/y6sprdbq

Re: Dub build failure

2020-10-04 Thread jerome via Digitalmars-d-learn
On Sunday, 4 October 2020 at 20:25:48 UTC, Andre Pany wrote: On Sunday, 4 October 2020 at 18:45:34 UTC, jerome wrote: I am trying to compile a simple lib, and a simple demo using this lib. [...] If I am not wrong there is following issue: in D a package is a folder. Having the package.d

Dub build failure

2020-10-04 Thread jerome via Digitalmars-d-learn
I am trying to compile a simple lib, and a simple demo using this lib. So I have 2 directories at the same level in the same DEV directory: demo1 Dterrent In the Dterrent directory, the dub.json is pretty common, compiling as a lib: "name": "dterrent",

Re: QuickSort on ranges

2020-10-04 Thread jerome via Digitalmars-d-learn
Thanks you very much Ali, I will try to wrap my head around your inputs, and get a better understanding of ranges in the process. I feel there is a lot of power in D ranges, and like the hammer of Thor, I am not worthy yet :)

QuickSort on ranges

2020-09-12 Thread jerome via Digitalmars-d-learn
Hi fellow coders, I spent a couple of hours to implement a working, basic, quicksort. Practicing D. It finally boils down to that (intent to use the std, not to rewrite swap, etc): import std.stdio : writeln; import std.algorithm.sorting; pure void