Generate all combinations of choosing k items from n items as an iterator. Useful for large combination sets to avoid storing all combinations in memory.
Total number of items.
Number of items to choose.
Each combination as an array of indices.
Generate all combinations of choosing k items from n items as an iterator. Useful for large combination sets to avoid storing all combinations in memory.