0
comment
comment
on 1/16/2017 1:00 AM
Tweet Note: read the whole series here. 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 Types (ADTs) in Scala. Case Class You can declare an ADT in F# using Discriminated Unions (DUs). For example, a binary tree might be represented