Skip to content

Instantly share code, notes, and snippets.

@j5ik2o
Created October 14, 2018 04:57
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 j5ik2o/eafc9c75648c2c8445c85a8deb083b93 to your computer and use it in GitHub Desktop.
Save j5ik2o/eafc9c75648c2c8445c85a8deb083b93 to your computer and use it in GitHub Desktop.
case class UserAcount(id: Long, name: String, groupId: Long) {
// ...
def groupName(groupRepository: GroupRepository): Task[GroupName] = groupRepository.resolveBy(groupId).map(_.name)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment