- Swift 4 Programming Cookbook
- Keith Moon
- 42字
- 2021-07-08 10:21:27
There's more...
As I mentioned in the introduction to this recipe, Swift treats enums as a first-class type, and therefore they can have functionalities that are not available to enums in most programming languages. These functionalities include having computed variables and methods.