This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@startuml | |
Scheduler --> Updater: do your job | |
Updater -> EmailQueue: get next email for update | |
EmailQueue --> EmailMeta: sync | |
EmailMeta -> CandidateList: emails that I don't have | |
EmailMeta <- CandidateList: emails | |
EmailMeta <- EmailMeta: update myself | |
EmailQueue -> EmailMeta: filter by some logic | |
EmailQueue <- EmailMeta: email |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Rectangle(width: Double, height: Double) | |
case class Square(radius: Double) | |
case class Triangle(side: Double) | |
trait Area[A] { | |
def area(shape: A): Double | |
} | |
object Area { | |
def apply[A: Area]: Area[A] = implicitly[Area[A]] |