please help me to reverse a function call order

Test123 test123 at gmail.com
Sat Jul 23 20:11:43 UTC 2022


On Saturday, 23 July 2022 at 20:00:06 UTC, rikki cattermole wrote:
> A bit more d-ified and uses foreach + foreach_reverse without 
> allocating an array.
>
> [...]

Thanks for the quick reply.


I also get your results, it is not correct because the secends 
number is not matched.


Not I look at your number, I find out just need change `a[index] 
= cast(ubyte) i;` to `a[m-index] = cast(ubyte) i;` will get the 
expect results.

Thanks for the help.


More information about the Digitalmars-d-learn mailing list