Last active
January 24, 2021 14:41
-
-
Save chrsp/3021ab73be43990f8667f8e93e9700eb 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
// Module: Domain | |
protocol Cookable { | |
func cook() | |
} | |
protocol Recipe: Cookable { | |
// Recipe definition | |
} | |
struct Ingredient: Codable { | |
// Ingredient definition | |
} | |
struct SpaghettiCarbonara: Codable, Recipe { | |
let ingredients: [Ingredient] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment