Skip to content

Instantly share code, notes, and snippets.

@mmollaverdi
Created October 27, 2016 17:03
Show Gist options
  • Select an option

  • Save mmollaverdi/eb3bd1c8a96bcaf06c5cecadffcc300e to your computer and use it in GitHub Desktop.

Select an option

Save mmollaverdi/eb3bd1c8a96bcaf06c5cecadffcc300e to your computer and use it in GitHub Desktop.
def getOwnerName(systemId: String): Option[String] = {
systemsMap.get(systemId).flatMap(system => ownersMap.get(system.ownerId)).map(_.name)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment