Possible Duplicate:
Scala - can yield be used multiple times with a for loop?
Cartesian product of two lists
I try to combine some Scala Lists the following way, but no success so far.
List (List ("abc", "def"), List ("gh", "ij", "kl"), List ("mnop") ...)
-> The result should be
List(
List("abc", "gh", "mnop"),
List("abc", "ij", "mnop"),
List("abc", "kl", "mnop"),
List("def", "gh", "mnop"),
List("def", "ij", "mnop"),
List("def", "kl", "mnop")
)