Skip to content

Instantly share code, notes, and snippets.

@ozw-sei
Created July 29, 2015 21:26
Show Gist options
  • Select an option

  • Save ozw-sei/61514b452bc09e7d4976 to your computer and use it in GitHub Desktop.

Select an option

Save ozw-sei/61514b452bc09e7d4976 to your computer and use it in GitHub Desktop.
unzip.scala
scala> val a = List(("one", 1), ("two", 2))
a: List[(String, Int)] = List((one,1), (two,2))
scala> a.unzip
res0: (List[String], List[Int]) = (List(one, two),List(1, 2))
scala>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment