Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Created January 14, 2016 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjazdzewski1990/1708a7feaaae78fe57d9 to your computer and use it in GitHub Desktop.
Save pjazdzewski1990/1708a7feaaae78fe57d9 to your computer and use it in GitHub Desktop.
val namesInDepartments = devNames.toList.flatMap {
case (key, value) => devDepartments.get(key).map(_ -> value)
}.groupBy(_._1).mapValues(_.map(_._2))
//Map(frontend -> List(Mason, McCarthy), analytics -> List(Smith), api -> List(Carter))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment