Skip to content

Instantly share code, notes, and snippets.

@JRuumis
Created June 14, 2016 14:54
Show Gist options
  • Select an option

  • Save JRuumis/4ae569bbd1ccef50db3b7a87f474b39b to your computer and use it in GitHub Desktop.

Select an option

Save JRuumis/4ae569bbd1ccef50db3b7a87f474b39b to your computer and use it in GitHub Desktop.
nesmuki
object MagicListMerger {
def listCartesian ( list: List[List[Int]] ): List[List[Int]] = ???
val sourceList =
List(
List(1,2,3),
List(10,20),
List(100,200,300,400)
)
val resultList = listCartesian(sourceList)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment