Guest User

Untitled

a guest
May 26th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. struct Cherry: Eatable {
  2. var taste: Taste = Taste.sweet
  3. func isBitter() -> Bool {
  4. return self.taste == .bitter
  5. }
  6. }
  7. let πŸ’ = Cherry() // literally we can have variable name like thisπŸ€“
  8.  
  9. struct Chilly: Eatable {
  10. var taste: Taste = Taste.spicy
  11. func isBitter() -> Bool {
  12. return self.taste == .bitter
  13. }
  14. }
  15. let 🌢 = Chilly()
Add Comment
Please, Sign In to add comment