Permutations: Difference between revisions
Content deleted Content added
Better lazy D entry |
+ tag in Faster Lazy Version |
||
Line 851: | Line 851: | ||
[3, 1, 2] |
[3, 1, 2] |
||
[3, 2, 1]</pre> |
[3, 2, 1]</pre> |
||
===Faster Lazy |
===Faster Lazy Version=== |
||
{{incorrect|D|This version is designed to sort indexes only.}} |
|||
Compiled with <code>-version=permutations2_main</code> produces the same output: |
Compiled with <code>-version=permutations2_main</code> produces the same output: |
||
<lang d>import std.algorithm, std.exception; |
<lang d>import std.algorithm, std.exception; |