I am wondering if there is a way to accomplish the work that Partial<T>
does in TypeScript in scala.
Specifically, for a given case class like
case class Foo(a: String, b: String, c: String)
Is there a way to derive a case class like
case class PartialFoo(a: Option[String], b: Option[String], c: Option[String])
in a way that I could construct a PartialFoo
without having to declare it?