RosettaCodeData/Task/Permutations/D/permutations-3.d

9 lines
147 B
D
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
void main() {
2015-02-20 00:35:01 -05:00
import std.stdio, std.algorithm;
2013-04-10 23:57:08 -07:00
auto items = [1, 2, 3];
do
2015-02-20 00:35:01 -05:00
items.writeln;
while (items.nextPermutation);
2013-04-10 23:57:08 -07:00
}