I frequently need a list of all possible lists of length N from a set. For example, if you have the set {1,2,3}, the list of all lists of length 2 would be: 11, 12, 13, 21, 22, 23, 31, 32, 33. Generating the binary numbers in order is another example of this. Is there a command-line program to do this?
Thanks. - mpn
Thanks. - mpn
