RosettaCodeData/Task/Permutations/Scala/permutations-1.scala

2 lines
44 B
Scala

List(1, 2, 3).permutations.foreach(println)