Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Closure

// declare a closure
var greet = {
  print("Hello, World!")
}

// call the closure
greet()
 
PREVIOUS NEXT
Tagged: #Swift #Closure
ADD COMMENT
Topic
Name
9+5 =