Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the power of Algebraic Data Types (ADTs) in Scala through this conference talk from Scala Days Copenhagen 2017. Delve into the often-underappreciated world of ADTs, also known as sum types, coproducts, or sealed trait families. Discover how to leverage these powerful features in your own domain, moving beyond their use in standard libraries. Examine common classes from the standard library and popular libraries that are actually ADTs in disguise. Revisit pattern matching techniques and learn how the compiler can assist with methods like folding. Follow along as a new collection type is developed using the concepts presented. Gain insights into counting values, marking states, working with Options and JSON, and implementing Red-Black Trees, including element insertion and tree balancing.