duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| def apply(petRepository: PetRepository, contestResultRepository: ContestResultRepository, rules: Rules) | |
| (pet1Id: UUID, pet2Id: UUID) | |
| (implicit ec: ExecutionContext): Future[Either[String, UUID]] = { | |
| val id = java.util.UUID.randomUUID | |
| for { | |
| pet1: Option[Pet] <- petRepository.find(pet1Id) | |
| pet2: Option[Pet] <- petRepository.find(pet2Id) | |
| // this is messy, try to change it to a more functional style at some point |