Printing string matrix
Posted: Thu May 31, 2012 2:15 pm
Hello,
I am thinking about a little tool to print all combinations of a string with length 3.
On each pos can be 'A' or 'B' or 'C'.
So I know that it gives 3 * 3 = 27 combinations
AAA
BBB
CCC
...
Anyone an idea to do this lispisch in newLISP?
Generic algo possible with variable length and variable number of possible chars?
I am thinking about a little tool to print all combinations of a string with length 3.
On each pos can be 'A' or 'B' or 'C'.
So I know that it gives 3 * 3 = 27 combinations
AAA
BBB
CCC
...
Anyone an idea to do this lispisch in newLISP?
Generic algo possible with variable length and variable number of possible chars?