Dinesman's multiple-dwelling problem: Difference between revisions

m
(→‎{{header|D}}: generate permutations lazily)
Line 145:
this (size_t num) {
enforce(num > 1, "LazyPermutation: num must be > 1");
this.seq = array(iota(0, num));
this.tot = fact(num);
this.num = num;
Anonymous user