Enumsยง
- Enum which contains all the different problem types. A
Problem
represents a problem instance in a modifiable state. It can insert or remove items, create a snapshot from the current state called aSolution
, and restore its state to a previousSolution
.
Also enables the use of match statements on theProblem
enum when variant-specific behavior is required, When a new variant is added, compile errors will be generated everywhere specific behaviour is required.