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.

Reply via email to