Top "Unapply" questions

Casting String to Int using scala extractors

I am trying to cast a String to Int using extractors. My code looks as follows. object Apply { def unapply(…

scala type-conversion implicit-conversion unapply
Scala: Case class unapply vs a manual implementation and type erasure

I'm trying to understand what Scala does with Case Classes that makes them somehow immune to type erasure warnings. Let's …

scala pattern-matching type-erasure case-class unapply
What is the difference between unapply and unapplySeq?

Why does Scala have both unapply and unapplySeq? What is the difference between the two? When should I prefer one …

scala pattern-matching unapply