Note: I\'m working in python on this.
For example, given a list:
list = [\'a\',\'b\',\'c\',\'d\',\'e\',\'f\',\'g\',\'h\',\'i\',\'j\']
itertools.permutations(my_list, 3)