ababup1192
11/10/2016 - 12:35 PM

ListSample.scala

object SeqHelpers {
  implicit class DiffableSeq[A](self: Seq[A]) {
    def --(target: Seq[A]): Seq[A] = self diff target
  }
}

import SeqHelpers._

object ListSample extends App {
  println(Seq(1, 2, 3) -- Seq(2))
  println(List(1, 2, 3) -- List(2))
}