Something like this?
trait Mergeable[A]:
extension (a1: A)
infix def merge(a2: A): Option[A]
The code above is compiled but I couldn’t find a way to implement it.
Something like this?
trait Mergeable[A]:
extension (a1: A)
infix def merge(a2: A): Option[A]
The code above is compiled but I couldn’t find a way to implement it.