Skip to content

Instantly share code, notes, and snippets.

@ryanpbrewster
Created May 4, 2016 20:08
Show Gist options
  • Select an option

  • Save ryanpbrewster/65a9f8d3a59969ff001721488c2899d5 to your computer and use it in GitHub Desktop.

Select an option

Save ryanpbrewster/65a9f8d3a59969ff001721488c2899d5 to your computer and use it in GitHub Desktop.
def getUsers(userIds: Set[Id[User]]): Map[Id[User], User] = {
userIds.map { userId =>
userId -> getUserFromDatabase(userId)
}.toMap
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment