Algebraic Data Types
Lecture Content
Algebraic data types in general
This is the general Algebraic data types
definition.
One important note:
- type and data constructor names must always start with a capital letter
- variables(including names of functions) must always start with a lowercase letter
Home Work
Exercise 1
Exercise 2
Exercise 3
Exercise 4
Exercise 5
Test code:
*LogAnalysis> testWhatWentWrong parse whatWentWrong "sample.log"
["Way too many pickles","Bad pickle-flange interaction detected","Flange failed!"]