Thanks for the explanation.
The current interface guarantees lexicographic order
It is easy to adjust my iterator to get lexicographic order. For example, just add one reverse:
$left= [ @$left, reverse @{$redo[$i]} ];
I plan to add a version to Algorithm::Loops before I die. (:
- tye
In reply to Re^4: Derangements iterator (order)
by tye
in thread Derangements iterator
by tye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |