原文
import std;
void doSomething(int i, string s)
{
writeln("%s-%s".format(i, s));
}
void main()
{
foreach (t; cartesianProduct(iota(1, 4), ["abc", "def", "ghi"]).parallel) {
doSomething(t.expand);
}
}
d内外并行
阅读 202
2022-08-27
原文
import std;
void doSomething(int i, string s)
{
writeln("%s-%s".format(i, s));
}
void main()
{
foreach (t; cartesianProduct(iota(1, 4), ["abc", "def", "ghi"]).parallel) {
doSomething(t.expand);
}
}
相关推荐
精彩评论(0)