Skip to content

Instantly share code, notes, and snippets.

View TonioGela's full-sized avatar
🐈

Antonio Gelameris TonioGela

🐈
View GitHub Profile
//> using scala "2.13.10"
//> using lib "io.spray::spray-json::1.3.6"
import spray.json._
// il tuo wrapper di cose nullabili
sealed trait PatchValue[+T]
object PatchValue {
object ToDelete extends PatchValue[Nothing]
case class Value[T](t: T) extends PatchValue[T]