Matrix transposition: Difference between revisions
Content added Content deleted
(Added functional D version) |
No edit summary |
||
Line 644: | Line 644: | ||
[13, 17, 21]]</pre> |
[13, 17, 21]]</pre> |
||
Functional style (same output): |
Functional style (same output): |
||
<lang>import std.stdio, std.algorithm, std.conv, std.range; |
<lang d>import std.stdio, std.algorithm, std.conv, std.range; |
||
auto transpose(T)(in T[][] m) { |
auto transpose(T)(in T[][] m) { |