Enumerations are powerful language features that provide static typing for small set of frequently used values. They are used to make code more readable and less error-prone.
CaseIterable is a feature as when used on an enumeration, the compiler automatically generate a static collection of all the cases defined Continue reading »