How can I find the n! permutations of certain letters on Scala?
n!
Scala 2.9 RC1:
scala> "abc".permutations.toList res58: List[String] = List(abc, acb, bac, bca, cab, cba)