Permutations: Difference between revisions
Content added Content deleted
(→{{header|Perl}}: Clean up perl4-ish code, and add modules) |
(Updated third D entry) |
||
Line 1,215: | Line 1,215: | ||
===Standard Version=== |
===Standard Version=== |
||
<lang d> |
<lang d>void main() { |
||
import std.stdio, std.algorithm; |
|||
void main() { |
|||
auto items = [1, 2, 3]; |
auto items = [1, 2, 3]; |
||
do |
do |
||
items.writeln; |
|||
while (items.nextPermutation |
while (items.nextPermutation); |
||
}</lang> |
}</lang> |
||