Anonymous user
Align columns: Difference between revisions
Simpler D code
(Removed a bug from D code) |
(Simpler D code) |
||
Line 633:
auto P = array(map!q{ a.chomp("$").split("$") }(splitlines(T)));
int[int] maxWidths;
foreach (line; P)
foreach (i, word; line)
foreach (i, justify; [&ljustify!string, ¢er!string,
Line 646 ⟶ 645:
foreach (line; P) {
foreach (j, word; line)
write(justify(word,
writeln();
}
|