What is the difference between unapply and unapplySeq?
Without going into details and simplifying a bit: For regular parameters apply constructs and unapply de-structures: object S { def apply(a: A):S = … // makes a S from an A def unapply(s: S): Option[A] = … // retrieve the A from the S } val s = S(a) s match { case S(a) => … Read more