Skip to content

Instantly share code, notes, and snippets.

trait Constructable[T] {
def construct: T
}
implicit object IntIsConstructable extends Constructable[Int] {
def construct = 42
}
implicit object StringIsConstructable extends Constructable[String] {
def construct = "Hello World"
case class Person(firstName: String, lastName: String)