Recursive combination enumeration generates combinations without mutation by splitting them into those that exclude the final element and those that include it. Since the final element can only appear at the right end, this preserves lexicographic order naturally. section 6.3.1
Ordered output
Generating four-element combinations from six elements produces 0123, 0124, 0134, 0234, 1234, and continues through 2345.
