From F# to Scala – case class/object (ADTs)
Read the whole series: Part 1 – type inference Part 2 – traits Part 3 – case class/object (ADTs) <- you’re here Part 4 – apply & unapply functions Part 5 – implicits Continuing on from where we left off with traits last time around, let’s look at Scala’s case class/object which can be used to create Algebraic Data …