Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift enum Associated Values

enum Laptop {
  
  // associate value 
  case name(String)
  ...
}
 
PREVIOUS NEXT
Tagged: #Swift #enum #Associated #Values
ADD COMMENT
Topic
Name
4+5 =