From F# to Scala – apply & unapply functions
Read the whole series: Part 1 — type inference Part 2 — traits Part 3 — case class/object (ADTs) Part 4 — apply & unapply functions <- you’re here Part 5 — implicits Last time around we looked at Scala’s Case Class in depth and how it compares to F#’s Discriminated Unions. F# also has Active Patterns, which is a very powerful language …