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
    
  
  
    
  | import Foundation | |
| enum VehicleClass { | |
| case small | |
| case medium | |
| case large | |
| } | |
| class ParkingSlot: Hashable { | 
  
    
      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
    
  
  
    
  | import Foundation | |
| class ParkingSlot { | |
| let id = UUID().uuidString | |
| let price: Int | |
| init(price: Int) { | |
| self.price = price | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | [ | |
| { | |
| "name": "Sublime Vivid", | |
| "colors": ["#FC466B", "#3F5EFB"] | |
| }, | |
| { | |
| "name": "Rainbow Blue", | |
| "colors": ["#00F260", "#0575E6"] | |
| }, | |
| { | 
  
    
      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
    
  
  
    
  | import Foundation | |
| protocol EnumCollection: Hashable { | |
| static var all: [Self] { get } | |
| } | |
| extension EnumCollection { | |
| static func cases() -> AnySequence<Self> { | |
| typealias SelfType = Self |