I'm trying to create a program which computes X Choose Y and creates a list of possible combinations (order does not matter, no repetition).
So for example, A, B, C, and D choose 2: AB, AC, AD, BC, BD, CD would be generated and stored.
Each letter represents a chemical reagent in a test tube. A resides in Tube 1, B in Tube 2, and so on.
A procedure would then create a CSV or text file where it would read each combination and store it as a line.
For example, it would read AB and convert it to Tube 1, Tube 2
Read AC and convert it to Tube 1, Tube 3
and so on.
What would be the most efficient way to generate the list of combinations, store it, and then read it to create a text/CSV file?
Thanks.