-
-
Save cipolleschi/e1e72a5e96f795b6b0e22ce65cd9ec25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let myPet: Pet = .dog(breed: .siberianHusky) | |
| switch myPet { | |
| case .dog(.siberianHusky): | |
| print("I have a Husky!") | |
| case .dog(.germanSheperd): | |
| print("I have a German Sheperd!") | |
| case .cat(.siamese): | |
| print("I have a Siamese Cat!") | |
| case .cat(.abyssian): | |
| print("I have an Abyssian Cat !") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment