On Sunday, 6 October 2024 at 10:53:28 UTC, Nick Treleaven wrote:
On Thursday, 3 October 2024 at 12:23:27 UTC, Holzofen wrote:
[...]
Could anybody point me to a way how to make a straight copy
without meddling with the source array?
You can copy an AA using `dup`:
https://dlang.org/phobos/ob
On Thursday, 3 October 2024 at 12:23:27 UTC, Holzofen wrote:
```d
uint64 sod_decompose(const uint64 n, const uint64 mod,
const ref uint64[] primes, const ref uint64[uint64][uint64]
factorials)
{
auto result = factorials[n];
for (uint64 k = 2; k < n - 1; k++) {