Execute a Markov algorithm: Difference between revisions
Content added Content deleted
(→{{header|D}}: move copy out of loop) |
|||
Line 960: | Line 960: | ||
} |
} |
||
redo: |
redo: |
||
auto copy = tests[i] |
auto copy = tests[i]; |
||
foreach (c; capt) { |
foreach (c; capt) { |
||
tests[i] = replace(tests[i], c[0], c[2]); |
tests[i] = replace(tests[i], c[0], c[2]); |