This week we will begin by reviewing higher-order functions in Scala’s List collection. We will then look at how errors are handled in programs. In particular, we will review exceptions, understand why exceptions do not work well in a functional context, and introduce alternative methods for handling errors and exceptional situations. The Option
, Either
, and Try
data types will be emphasized.