Skip to content

Instantly share code, notes, and snippets.

@gbougeard
Created October 14, 2013 13:50
Show Gist options
  • Select an option

  • Save gbougeard/6975945 to your computer and use it in GitHub Desktop.

Select an option

Save gbougeard/6975945 to your computer and use it in GitHub Desktop.
hotels.groupBy(x => (x._1, x._2, x._4, x._5)).mapValues(x => x.map(_._3.text).mkString)
=> ??
hotels.groupBy{ case(hotel, star, descr, cust, email) => (hotel, star, cust, email)}
.mapValues{x => x.map(_.descr.text).mkString}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment