Making sense of recursion
Colin
grogan.colin at gmail.com
Mon Jun 25 18:23:42 UTC 2018
On Monday, 25 June 2018 at 17:45:01 UTC, zbr wrote:
> Hi, this question is not specifically D related but I'll just
> ask anyway. Consider the following snippet:
>
> [...]
Your mistake is in your visualization :-)
But... more like:
0 < 4 ? true : mergeSort(0,2) && mergeSort(3, 4)
And so on.
I.e, the it's not either or to run the second mergeSort, they
both happen.
More information about the Digitalmars-d-learn
mailing list