foreach (i; taskPool.parallel(0..2_000_000)
Steven Schveighoffer
schveiguy at gmail.com
Sat Apr 1 18:30:32 UTC 2023
On 4/1/23 2:25 PM, Paul wrote:
> Thanks in advance for any assistance.
>
> As the subject line suggests can I do something like? :
> ```d
> foreach (i; taskPool.parallel(0..2_000_000))
> ```
> Obviously this exact syntax doesn't work but I think it expresses the
> gist of my challenge.
```d
import std.range;
foreach(; iota(0, 2_000_000).parallel)
```
-Steve
More information about the Digitalmars-d-learn
mailing list