Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Closures as Function Parameter

// define a function
func grabLunch(search: () -> ()) {
  …
  // closure call
  search()  
}
 
PREVIOUS NEXT
Tagged: #Swift #Closures #Function #Parameter
ADD COMMENT
Topic
Name
8+4 =