Guest User

Untitled

a guest
May 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. protocol Drinkable {
  2.  
  3. associatedtype PrimaryIngredient: Ingredient
  4. associatedtype SecondaryIngredient: Ingredient
  5.  
  6. var ingredients: [Any] { get set }
  7.  
  8. mutating func fill()
  9.  
  10. /**
  11. Provides the secondary ingredient
  12.  
  13. - returns: The secondary ingredient
  14. */
  15. func provideMilk() -> SecondaryIngredient
  16.  
  17. /**
  18. Provides the primary ingredient which will be mostly some sort of coffee
  19.  
  20. - returns: The primary ingredient
  21. */
  22. func provideCoffee() -> PrimaryIngredient
  23. }
Add Comment
Please, Sign In to add comment